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