Fix OC_USER_LDAP::checkPassword() to return the username

REVIEW: 102487
This commit is contained in:
Caio Marcelo de Oliveira Filho 2011-08-29 15:08:26 -03:00
parent b579c812b2
commit 578d1de55d
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ class OC_USER_LDAP extends OC_User_Backend {
if( !$dn )
return false;
return @ldap_bind( $this->getDs(), $dn, $password );
if (!@ldap_bind( $this->getDs(), $dn, $password ))
return false;
return $uid;
}
public function userExists( $uid ) {