summaryrefslogtreecommitdiff
path: root/plugins/LdapCommon
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-12-17 17:22:52 -0500
committerCraig Andrews <candrews@integralblue.com>2010-12-17 17:22:52 -0500
commit786250e3d9d10dac56f4649e5c4cf8e02fc71570 (patch)
tree52371fea4031d579e366a222b47b488af211ef5e /plugins/LdapCommon
parent0e7a283883bc82ca2dfa5426c254caf7d749252c (diff)
In LdapCommon checkPassword/changePassword only get the 'dn' attribute as an optimization as no other attributes are necessary.
Thanks to drslump reported at http://status.net/open-source/issues/2955
Diffstat (limited to 'plugins/LdapCommon')
-rw-r--r--plugins/LdapCommon/LdapCommon.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/LdapCommon/LdapCommon.php b/plugins/LdapCommon/LdapCommon.php
index 159b2d265..ef0343be4 100644
--- a/plugins/LdapCommon/LdapCommon.php
+++ b/plugins/LdapCommon/LdapCommon.php
@@ -140,7 +140,7 @@ class LdapCommon
function checkPassword($username, $password)
{
- $entry = $this->get_user($username);
+ $entry = $this->get_user($username,array('dn' => 'dn'));
if(!$entry){
return false;
}else{
@@ -168,7 +168,7 @@ class LdapCommon
//throw new Exception(_('Sorry, changing LDAP passwords is not supported at this time'));
return false;
}
- $entry = $this->get_user($username);
+ $entry = $this->get_user($username,array('dn' => 'dn'));
if(!$entry){
return false;
}else{