mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Fix that Icinga\Protocol\Ldap\Connection does not correctly apply limits
This commit is contained in:
parent
97cc37b99c
commit
9ff0bbcfc0
@ -285,8 +285,9 @@ class Connection
|
|||||||
$entry = ldap_first_entry($this->ds, $results);
|
$entry = ldap_first_entry($this->ds, $results);
|
||||||
while ($entry) {
|
while ($entry) {
|
||||||
$count++;
|
$count++;
|
||||||
if (($offset === null || $offset <= $count)
|
if (
|
||||||
&& ($limit === null || ($offset + $limit) > $count)
|
($offset === null || $offset <= $count)
|
||||||
|
&& ($limit === null || $limit > count($entries))
|
||||||
) {
|
) {
|
||||||
$entries[ldap_get_dn($this->ds, $entry)] = $this->cleanupAttributes(
|
$entries[ldap_get_dn($this->ds, $entry)] = $this->cleanupAttributes(
|
||||||
ldap_get_attributes($this->ds, $entry)
|
ldap_get_attributes($this->ds, $entry)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user