From 610bc5a4fe00994aa9b27db5df4e8488aa06ed68 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:24:31 +0200 Subject: [PATCH] AdminAccountPage: Fix LDAP setup error --- modules/setup/application/forms/AdminAccountPage.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/setup/application/forms/AdminAccountPage.php b/modules/setup/application/forms/AdminAccountPage.php index 7e34ed6518..b33749efc9 100644 --- a/modules/setup/application/forms/AdminAccountPage.php +++ b/modules/setup/application/forms/AdminAccountPage.php @@ -301,8 +301,9 @@ protected function fetchUsers() ->select(array('user_name')) ->order('user_name', 'asc', true); if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) { - /** @var LdapQuery $query */ - $query->setUsePagedResults(); + /** @var LdapQuery $ldapQuery */ + $ldapQuery = $query->getQuery(); + $ldapQuery->setUsePagedResults(); } return $query->fetchColumn(); @@ -360,8 +361,9 @@ protected function fetchGroups() ->createUserGroupBackend() ->select(array('group_name')); if (in_array($this->backendConfig['backend'], array('ldap', 'msldap'))) { - /** @var LdapQuery $query */ - $query->setUsePagedResults(); + /** @var LdapQuery $ldapQuery */ + $ldapQuery = $query->getQuery(); + $ldapQuery->setUsePagedResults(); } return $query->fetchColumn();