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:
The Cookie needs to be refreshed on every Call to the LDAP Server