Limit search to only the basedn we're looking in
This commit is contained in:
parent
c17d7b671d
commit
f70c3b6ae9
|
@ -192,7 +192,7 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin
|
|||
$options = array(
|
||||
'attributes' => $attributes
|
||||
);
|
||||
$search = $ldap->search(null,$filter,$options);
|
||||
$search = $ldap->search($this->basedn, $filter, $options);
|
||||
|
||||
if (PEAR::isError($search)) {
|
||||
common_log(LOG_WARNING, 'Error while getting DN for user: '.$search->getMessage());
|
||||
|
|
Loading…
Reference in New Issue
Block a user