mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 14:20:31 +01:00
Use new module
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user