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-15 15:47:44 +0100 |
commit | cbf60f2e91c6028c5b1bbf6a48e4042c59a95a0a (patch) | |
tree | 70231a6c9150669a0b034b7a1adb1342ac56b2ad /apps | |
parent | fa886ef4eba0d7bdfdccc5e46de9971174598394 (diff) | |
download | nextcloud-server-cbf60f2e91c6028c5b1bbf6a48e4042c59a95a0a.tar.gz nextcloud-server-cbf60f2e91c6028c5b1bbf6a48e4042c59a95a0a.zip |
existence check works without attribute (like with users)
cn is not necessarily given everywhere
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-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 0c87bd9c069..9fb37090270 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -472,6 +472,7 @@ class Access extends LDAPUtility implements IUserTools { * * @param string[] $groupDNs * @return string[] + * @throws ServerNotAvailableException */ public function groupsMatchFilter($groupDNs) { $validGroupDNs = []; @@ -492,7 +493,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; |