fix(LDAP): prevent incomplete displaynames…

… when reading users from primary groups or gidNumber-based groups

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/41333/head
Arthur Schiwon 2023-11-07 21:02:31 +07:00
parent 2769b99bcf
commit d978050666
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 2 additions and 2 deletions

@ -496,7 +496,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
$filter = $this->prepareFilterForUsersHasGidNumber($groupDN, $search);
$users = $this->access->fetchListOfUsers(
$filter,
[$this->access->connection->ldapUserDisplayName, 'dn'],
$this->access->userManager->getAttributes(true),
$limit,
$offset
);
@ -620,7 +620,7 @@ class Group_LDAP extends ABackend implements GroupInterface, IGroupLDAP, IGetDis
$filter = $this->prepareFilterForUsersInPrimaryGroup($groupDN, $search);
$users = $this->access->fetchListOfUsers(
$filter,
[$this->access->connection->ldapUserDisplayName, 'dn'],
$this->access->userManager->getAttributes(true),
$limit,
$offset
);