From 244fa4429c1936ce5391dc1042071cfec5b6263e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9nD?= Date: Sat, 25 Jun 2022 10:16:34 +0200 Subject: [PATCH] Merge pull request #1588 (#1848) * [FIX] Fixes issue with LDAP pagination Co-authored-by: Felix Haase --- lib/SP/Providers/Auth/Ldap/LdapActions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SP/Providers/Auth/Ldap/LdapActions.php b/lib/SP/Providers/Auth/Ldap/LdapActions.php index d43a71df5..94e60d253 100644 --- a/lib/SP/Providers/Auth/Ldap/LdapActions.php +++ b/lib/SP/Providers/Auth/Ldap/LdapActions.php @@ -203,7 +203,7 @@ protected function getResults($filter, array $attributes = null, $searchBase = n $searchRes, $cookie ); - } while ($cookie !== null && $cookie != ''); + } while (!empty($cookie) && $entries["count"] > 0); return $results; }