I know this is a Lucee group and I haven't yet had time to test this on a Lucee server, but I just discovered an issue in Railo 4.2 which I'm wondering if anyone else has bumped into.
AD has a default MaxPageSize setting that prevents more than 1000 objects by default from being returned in a single LDAP query. We have tried to get around this setting when integrating with AD by supporting a paging mechanism. When we query AD we sort by USNChanged from oldest to newest updated objects and as we do this, each time we query we look for only those higher than the largest USNChanged value previously encountered.
This has worked well, but we discovered yesterday that in Railo 4.2 we are hitting the page limitation and getting results back that are sorted in USNChanged order, but are missing objects with USNChanged values lower than the maximum value in the result set. If anyone else has experienced this or it is known to be fixed in Lucee 4.5+ please let me know.
Thanks, Rob