existence check works without attribute (like with users)

cn is not necessarily given everywhere

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2018-03-15 15:47:44 +01:00
parent 161a0f29d9
commit 588ee6af06
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 2 additions and 1 deletions

View File

@ -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;