AdminAccountPage: Fix LDAP setup error

This commit is contained in:
raviks789 2023-09-26 12:24:31 +02:00 committed by Johannes Meyer
parent 9194378c3c
commit 610bc5a4fe
1 changed files with 6 additions and 4 deletions

View File

@ -301,8 +301,9 @@ class AdminAccountPage extends Form
->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 @@ class AdminAccountPage extends Form
->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();