Use new module

This commit is contained in:
Jamie Cameron
2009-03-01 03:15:33 +00:00
parent 0d06f98179
commit 8248aa3da0
2 changed files with 7 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
# Functions for parsing and updating the LDAP config file
do '../web-lib.pl';
BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
do '../ui-lib.pl';
@base_types = ("passwd", "shadow", "group", "hosts", "networks", "netmasks",
"services", "protocols", "aliases", "netgroup");
@@ -237,7 +237,7 @@ elsif ($uri) {
}
}
}
if (!$ldap) {
if (!$ldap && !$err) {
$err = &text('ldap_eparse', $uri);
}
}

View File

@@ -3,11 +3,11 @@
# Sanitaetsbetrieb Brixen - Azienda Sanitaria di Bressanone
# www.sb-brixen.it - www.as-bressanone.it
do '../web-lib.pl';
BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
do '../ui-lib.pl';
&foreign_require("useradmin", "user-lib.pl");
&foreign_require("ldap-client", "ldap-client-lib.pl");
&foreign_require("useradmin");
&foreign_require("ldap-client");
%access = &get_module_acl();
$useradmin::access{'udelete'} = 1; # needed for users_table / groups_table
$useradmin::access{'gdelete'} = 1;