summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-12-18 18:26:41 -0600
committerEric Helgeson <erichelgeson@gmail.com>2009-12-18 18:26:41 -0600
commitf70c3b6ae997705d8f4c160202f2ae2180c3d16e (patch)
tree670532af3d02837b9657f442dadb33d504a46d95 /plugins
parentc17d7b671d245061cf716fe876b5bf7194febddc (diff)
Limit search to only the basedn we're looking in
Diffstat (limited to 'plugins')
-rw-r--r--plugins/LdapAuthentication/LdapAuthenticationPlugin.php2
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());