Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2011-08-29 22:08:26 +0400
committerCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2011-09-01 20:56:30 +0400
commit578d1de55da6226ac65022d1ba6e032ee066d449 (patch)
tree79e0d20891ea837771c015b181b13f6348048f46 /apps/user_ldap
parentb579c812b2aa5c327b7954d97c7442e5b1607e9f (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.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 ) {