mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-15 08:20:12 +00:00
If LDAP filterUsers is not set, or is empty, don't bracket it.
This commit is contained in:
parent
8323c7ce0d
commit
33d222bb61
@ -263,7 +263,7 @@ function LDAP_check($username, $password ){
|
||||
if ( preg_match( '/^\(/', $ldapDriver->filterUsers ) ) {
|
||||
$filter_munge = $ldapDriver->filterUsers;
|
||||
}
|
||||
else {
|
||||
else if ( isset($ldapDriver->filterUsers) && $ldapDriver->filterUsers != '' ) {
|
||||
$filter_munge = "($ldapDriver->filterUsers)";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user