We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 786250e3 authored by Craig Andrews's avatar Craig Andrews

In LdapCommon checkPassword/changePassword only get the 'dn' attribute as an...

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
parent 0e7a2838
......@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment