summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2011-08-29 15:08:26 -0300
committerCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2011-09-01 13:56:30 -0300
commit578d1de55da6226ac65022d1ba6e032ee066d449 (patch)
tree79e0d20891ea837771c015b181b13f6348048f46 /apps/user_ldap
parentb579c812b2aa5c327b7954d97c7442e5b1607e9f (diff)
downloadnextcloud-server-578d1de55da6226ac65022d1ba6e032ee066d449.tar.gz
nextcloud-server-578d1de55da6226ac65022d1ba6e032ee066d449.zip
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.php4
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 ) {