Fix OC_USER_LDAP::checkPassword() to return the username
REVIEW: 102487
This commit is contained in:
parent
b579c812b2
commit
578d1de55d
|
@ -105,7 +105,9 @@ class OC_USER_LDAP extends OC_User_Backend {
|
||||||
if( !$dn )
|
if( !$dn )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return @ldap_bind( $this->getDs(), $dn, $password );
|
if (!@ldap_bind( $this->getDs(), $dn, $password ))
|
||||||
|
return false;
|
||||||
|
return $uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function userExists( $uid ) {
|
public function userExists( $uid ) {
|
||||||
|
|
Loading…
Reference in New Issue