]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Limit search to only the basedn we're looking in
authorEric Helgeson <erichelgeson@gmail.com>
Sat, 19 Dec 2009 00:26:41 +0000 (18:26 -0600)
committerEric Helgeson <erichelgeson@gmail.com>
Sat, 19 Dec 2009 00:26:41 +0000 (18:26 -0600)
plugins/LdapAuthentication/LdapAuthenticationPlugin.php

index 8caacff46433ec3d3a7af40574df9ea403ec431b..df8aa079289fd2cdf71c70ab556892d52b03634f 100644 (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());