From c0ee3cdcc5f7d610a08415feaa6572c729c64b62 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 15 Mar 2018 15:47:44 +0100 Subject: [PATCH] existence check works without attribute (like with users) cn is not necessarily given everywhere Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Access.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index a805c63ffc..1d44ec0362 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -460,6 +460,7 @@ class Access extends LDAPUtility implements IUserTools { * * @param string[] $groupDNs * @return string[] + * @throws ServerNotAvailableException */ public function groupsMatchFilter($groupDNs) { $validGroupDNs = []; @@ -480,7 +481,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;