forked from GNUsocial/gnu-social
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(
|
$options = array(
|
||||||
'attributes' => $attributes
|
'attributes' => $attributes
|
||||||
);
|
);
|
||||||
$search = $ldap->search(null,$filter,$options);
|
$search = $ldap->search($this->basedn, $filter, $options);
|
||||||
|
|
||||||
if (PEAR::isError($search)) {
|
if (PEAR::isError($search)) {
|
||||||
common_log(LOG_WARNING, 'Error while getting DN for user: '.$search->getMessage());
|
common_log(LOG_WARNING, 'Error while getting DN for user: '.$search->getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user