summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-07 21:02:31 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-11-09 19:48:59 +0000
commit369d99f51340ed71c34d500d32f520225c97c198 (patch)
tree4e23b55d2eb1f1dcdef32a7ae7a45dc3319b94ba
parent6250c7d3a9a9e754f7e7c90afc0267f1d88cddfb (diff)
downloadnextcloud-server-369d99f51340ed71c34d500d32f520225c97c198.tar.gz
nextcloud-server-369d99f51340ed71c34d500d32f520225c97c198.zip
fix(LDAP): prevent incomplete displaynames…
… when reading users from primary groups or gidNumber-based groups Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-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 2f7b2c24ab3..70dca6a40ca 100644
--- a/apps/user_ldap/lib/Group_LDAP.php
+++ b/apps/user_ldap/lib/Group_LDAP.php
@@ -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
);
@@ -618,7 +618,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
);