]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(LDAP): prevent incomplete displaynames… 41333/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 7 Nov 2023 20:02:31 +0000 (21:02 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 7 Nov 2023 20:02:31 +0000 (21:02 +0100)
… when reading users from primary groups or gidNumber-based groups

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/Group_LDAP.php

index 5ad64753c0c56e35e640b12de625cf53f8bbac2f..a388c4acbd569c2ef8695c21715f7280315aa02d 100644 (file)
@@ -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
                        );