Merge pull request #41369 from nextcloud/backport/41333/stable26

[stable26] fix(LDAP): prevent incomplete displaynames…
This commit is contained in:
Arthur Schiwon 2023-11-13 21:39:38 +01:00 committed by GitHub
commit d19dd1fd55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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