diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-03-15 15:47:44 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-03-16 10:26:29 +0100 |
commit | 588ee6af063cada71a4f4edb80940081af7ead54 (patch) | |
tree | 5b14abdda971848b41bdb1c2a0be8f666387d77e | |
parent | 161a0f29d9a261a5f70cc51afa2659bf2a1b87a6 (diff) | |
download | nextcloud-server-588ee6af063cada71a4f4edb80940081af7ead54.tar.gz nextcloud-server-588ee6af063cada71a4f4edb80940081af7ead54.zip |
existence check works without attribute (like with users)
cn is not necessarily given everywhere
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | apps/user_ldap/lib/Access.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 54467857793..f2fc43ed9b8 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -473,6 +473,7 @@ class Access extends LDAPUtility implements IUserTools { * * @param string[] $groupDNs * @return string[] + * @throws ServerNotAvailableException */ public function groupsMatchFilter($groupDNs) { $validGroupDNs = []; @@ -493,7 +494,7 @@ class Access extends LDAPUtility implements IUserTools { continue; } - $result = $this->readAttribute($dn, 'cn', $this->connection->ldapGroupFilter); + $result = $this->readAttribute($dn, '', $this->connection->ldapGroupFilter); if(is_array($result)) { $this->connection->writeToCache($cacheKey, true); $validGroupDNs[] = $dn; |