Limit search to only the basedn we're looking in

This commit is contained in:
Eric Helgeson 2009-12-18 18:26:41 -06:00
parent c17d7b671d
commit f70c3b6ae9
1 changed files with 1 additions and 1 deletions

View File

@ -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());