]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
In LdapCommon checkPassword/changePassword only get the 'dn' attribute as an optimiza...
authorCraig Andrews <candrews@integralblue.com>
Fri, 17 Dec 2010 22:22:52 +0000 (17:22 -0500)
committerCraig Andrews <candrews@integralblue.com>
Fri, 17 Dec 2010 22:22:52 +0000 (17:22 -0500)
Thanks to drslump reported at http://status.net/open-source/issues/2955

plugins/LdapCommon/LdapCommon.php

index 159b2d265a2c13c123f04c7e21620d01d310a672..ef0343be435a356f5e700d8dbfd76c0147f4ca39 100644 (file)
@@ -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{