diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 5446785779321..f2fc43ed9b830 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -473,6 +473,7 @@ public function dn2groupname($fdn, $ldapName = null) { * * @param string[] $groupDNs * @return string[] + * @throws ServerNotAvailableException */ public function groupsMatchFilter($groupDNs) { $validGroupDNs = []; @@ -493,7 +494,7 @@ public function groupsMatchFilter($groupDNs) { 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;