Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.9.0
-
None
Description
LdapRealm does not utilize the Cookie from the LDAP Server to continue fetching paged results of the search.
Therefore the Result Size is limited by ldapRealm.pagingSize (defaults to 100)
This will lead to very unpredictable behaviour, e.g. if the results get sorted differently for every search and can therefore be different for every search result.
Cause of this behaviour is in LdapRealm.rolesFor:
dapCtx.setRequestControls(new Control[]{new PagedResultsControl(pageSize,null, Control.CRITICAL)});
The Cookie needs to be refreshed on every Call to the LDAP Server