mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix validation for bases with spaces in them https://sourceforge.net/p/webadmin/bugs/5044/
This commit is contained in:
@@ -21,10 +21,10 @@ if (&get_ldap_client() eq "nss") {
|
||||
else {
|
||||
# Newer LDAP versions have a base starting with 'user', but fall back
|
||||
# to the one with no DB
|
||||
($user_base) = map { /^\S+\s+(\S+)/; $1 }
|
||||
($user_base) = map { /^\S+\s+(\S+=*)/; $1 }
|
||||
grep { /^passwd\s/ } @bases;
|
||||
if (!$user_base) {
|
||||
($user_base) = grep { /^\S+$/ } @bases;
|
||||
($user_base) = grep { /^\S+=.*$/ } @bases;
|
||||
}
|
||||
}
|
||||
if (!$user_base) {
|
||||
|
||||
Reference in New Issue
Block a user