From cd1b960f3af140a08efe17c541eb9c5f5908a617 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 7 Nov 2023 21:02:31 +0100 Subject: [PATCH] =?utf8?q?fix(LDAP):=20prevent=20incomplete=20displaynames?= =?utf8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … when reading users from primary groups or gidNumber-based groups Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Group_LDAP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php index b2bdd09ef9f..77e103144e9 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 ); @@ -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 ); -- 2.39.5