diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-04-13 11:59:47 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-04-13 12:04:51 +0200 |
commit | 41ad4f46c8e1a02ef811d5a9205041bb7a619144 (patch) | |
tree | a434834d34be3cea3af74672d486b532e235aa6f /apps/user_ldap | |
parent | a418150470f9cae3ef727024e4e3dd4bfd31904c (diff) | |
download | nextcloud-server-41ad4f46c8e1a02ef811d5a9205041bb7a619144.tar.gz nextcloud-server-41ad4f46c8e1a02ef811d5a9205041bb7a619144.zip |
adjust to current master
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index ad10a2bf95d..258852d650d 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -92,16 +92,15 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn /** * returns an LDAP record based on a given login name * - * @param $loginName + * @param string $loginName * @return array * @throws \Exception */ public function getLDAPUserByLoginName($loginName) { - $uid = $this->access->escapeFilterPart($loginName); //find out dn of the user name $attrs = array($this->access->connection->ldapUserDisplayName, 'dn', 'uid', 'samaccountname'); - $users = $this->access->fetchUsersByLoginName($uid, $attrs); + $users = $this->access->fetchUsersByLoginName($loginName, $attrs); if(count($users) < 1) { throw new \Exception('No user available for the given login name.'); } |