Skip to content

Commit

Permalink
AdminAccountPage: Fix LDAP setup error
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 authored and nilmerg committed Sep 28, 2023
1 parent 9194378 commit 610bc5a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/setup/application/forms/AdminAccountPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 610bc5a

Please sign in to comment.