diff options
author | Eric Helgeson <erichelgeson@gmail.com> | 2009-12-18 18:26:41 -0600 |
---|---|---|
committer | Eric Helgeson <erichelgeson@gmail.com> | 2009-12-18 18:26:41 -0600 |
commit | f70c3b6ae997705d8f4c160202f2ae2180c3d16e (patch) | |
tree | 670532af3d02837b9657f442dadb33d504a46d95 | |
parent | c17d7b671d245061cf716fe876b5bf7194febddc (diff) |
Limit search to only the basedn we're looking in
-rw-r--r-- | plugins/LdapAuthentication/LdapAuthenticationPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php index 8caacff46..df8aa0792 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()); |