From: Craig Andrews Date: Fri, 17 Dec 2010 22:22:52 +0000 (-0500) Subject: In LdapCommon checkPassword/changePassword only get the 'dn' attribute as an optimiza... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=786250e3d9d10dac56f4649e5c4cf8e02fc71570;p=quix0rs-gnu-social.git 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 --- diff --git a/plugins/LdapCommon/LdapCommon.php b/plugins/LdapCommon/LdapCommon.php index 159b2d265a..ef0343be43 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{