From: Eric Helgeson Date: Sat, 19 Dec 2009 00:26:41 +0000 (-0600) Subject: Limit search to only the basedn we're looking in X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f70c3b6ae997705d8f4c160202f2ae2180c3d16e;p=quix0rs-gnu-social.git Limit search to only the basedn we're looking in --- diff --git a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php index 8caacff464..df8aa07928 100644 --- a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php +++ b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php @@ -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());