diff options
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index ea1371c14d3..54e14c093f3 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -79,14 +79,10 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn * Check if the password is correct without logging in the user */ public function checkPassword($uid, $password) { - $uid = $this->access->escapeFilterPart($uid); - //find out dn of the user name $attrs = array($this->access->connection->ldapUserDisplayName, 'dn', 'uid', 'samaccountname'); - $filter = \OCP\Util::mb_str_replace( - '%uid', $uid, $this->access->connection->ldapLoginFilter, 'UTF-8'); - $users = $this->access->fetchListOfUsers($filter, $attrs); + $users = $this->access->fetchUsersByLoginName($uid, $attrs); if(count($users) < 1) { return false; } |