From 588ee6af063cada71a4f4edb80940081af7ead54 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 15 Mar 2018 15:47:44 +0100 Subject: 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 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; -- cgit v1.2.3