diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-10-08 21:18:34 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-10-08 21:18:34 +0200 |
commit | a876efda50680f7d8652299cb5265dc552be45cf (patch) | |
tree | fe6f0ed2bbfc8e22a9419c74ce5e4d32fa5c08aa /apps/user_ldap/user_ldap.php | |
parent | dd2e887a8d9be9cb95a52582612bf95e2f8eb247 (diff) | |
download | nextcloud-server-a876efda50680f7d8652299cb5265dc552be45cf.tar.gz nextcloud-server-a876efda50680f7d8652299cb5265dc552be45cf.zip |
treat dn as any other attribute when building the search() return array
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 59c61524c9b..fc8ce361637 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -78,7 +78,7 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn public function loginName2UserName($loginName) { try { $ldapRecord = $this->getLDAPUserByLoginName($loginName); - $user = $this->access->userManager->get($ldapRecord['dn']); + $user = $this->access->userManager->get($ldapRecord['dn'][0]); if($user instanceof OfflineUser) { return false; } @@ -119,7 +119,7 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn } catch(\Exception $e) { return false; } - $dn = $ldapRecord['dn']; + $dn = $ldapRecord['dn'][0]; $user = $this->access->userManager->get($dn); if(!$user instanceof User) { |