Description
The ApplicationServiceGeneric search methods try to fetch (offset + maxResults) results from each directory, but they will stop querying the underlying directories when then have maxResults results. They should only return when they have at least offset + maxResults.
For example, querying with a start index of 10 and max results of 5, if the first directory contained six users we would decide we had more than five, never query the second directory, but then throw those six users away because they come before the start index.
This is only an issue when paging. Queries for ALL_RESULTS are unaffected.
CWD-2748 fixed this for searchUsers, but it's still an issue for searchGroups, searchDirectGroupRelationships and searchNestedGroupRelationships.