Browse Source
when paged results are turned off, all (max possible) users are returned
thus hasMoreResult should return false
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/7796/head
Arthur Schiwon
8 years ago
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with
3 additions and
2 deletions
-
apps/user_ldap/lib/Jobs/Sync.php
-
apps/user_ldap/tests/Jobs/SyncTest.php
|
|
@ -177,7 +177,7 @@ class Sync extends TimedJob { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
if($connection->ldapPagingSize === 0) { |
|
|
if($connection->ldapPagingSize === 0) { |
|
|
return true; |
|
|
|
|
|
|
|
|
return false; |
|
|
} |
|
|
} |
|
|
return count($results) >= $connection->ldapPagingSize; |
|
|
return count($results) >= $connection->ldapPagingSize; |
|
|
} |
|
|
} |
|
|
|
|
|
@ -158,7 +158,8 @@ class SyncTest extends TestCase { |
|
|
return [ |
|
|
return [ |
|
|
[ 3, 3, true ], |
|
|
[ 3, 3, true ], |
|
|
[ 3, 5, true ], |
|
|
[ 3, 5, true ], |
|
|
[ 3, 2, false] |
|
|
|
|
|
|
|
|
[ 3, 2, false], |
|
|
|
|
|
[ 0, 4, false] |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|