From 786250e3d9d10dac56f4649e5c4cf8e02fc71570 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Fri, 17 Dec 2010 17:22:52 -0500 Subject: [PATCH] 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 --- plugins/LdapCommon/LdapCommon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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{ -- 2.39.5