diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2011-08-29 22:08:26 +0400 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> | 2011-09-01 20:56:30 +0400 |
commit | 578d1de55da6226ac65022d1ba6e032ee066d449 (patch) | |
tree | 79e0d20891ea837771c015b181b13f6348048f46 /apps/user_ldap | |
parent | b579c812b2aa5c327b7954d97c7442e5b1607e9f (diff) |
Fix OC_USER_LDAP::checkPassword() to return the username
REVIEW: 102487
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 2d94ef828ab..1154efc17b1 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -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 ) { |