summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-09 20:41:52 +0100
committerGitHub <noreply@github.com>2023-11-09 20:41:52 +0100
commit743066a3d39332cd328a5a5eafe3026f25b1bfa2 (patch)
treea6f979559b857eff0341672f522f024bbdd6d76d /apps
parent7248d9b091d50f965d777516e15788aacd75c4fa (diff)
parentd97805066685c7a31e76eea97353186085ca81b8 (diff)
downloadnextcloud-server-743066a3d39332cd328a5a5eafe3026f25b1bfa2.tar.gz
nextcloud-server-743066a3d39332cd328a5a5eafe3026f25b1bfa2.zip
Merge pull request #41333 from nextcloud/fix/41316/incomplete-displayname
fix(LDAP): prevent incomplete displaynames…
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Group_LDAP.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php
index 5ad64753c0c..a388c4acbd5 100644
--- a/apps/user_ldap/lib/Group_LDAP.php
+++ b/apps/user_ldap/lib/Group_LDAP.php
@@ -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
);