]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/LdapCommon/LdapCommon.php
Merge branch '0.9.x' into 1.0.x
[quix0rs-gnu-social.git] / plugins / LdapCommon / LdapCommon.php
index 579fe4b64b474fe649198170037e9c1ba1a6ad33..3afcd824f96ac14ccd08a4643f009677678939cf 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{