[MNT-23665] Removed search controls count limit (#1936)

This commit is contained in:
tiagosalvado10 2023-05-30 13:42:32 +01:00 committed by GitHub
parent b0af817377
commit 07c7342032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1605,8 +1605,6 @@ public class LDAPUserRegistry implements UserRegistry, LDAPNameResolver, Initial
this.userSearchCtls = new SearchControls();
this.userSearchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
this.userSearchCtls.setReturningAttributes(LDAPUserRegistry.this.userKeys.getFirst());
// MNT-14001 fix, set search limit to ensure that server will not return more search results then provided by paged result control
this.userSearchCtls.setCountLimit(LDAPUserRegistry.this.queryBatchSize > 0 ? LDAPUserRegistry.this.queryBatchSize : 0);
this.next = fetchNext();
}