I'm facing problem with maximum result size which is 1000 on server.
I have to get more than 50000 groups.
I don't have any criteria to filter, even the stupidiest ideas like making pagination by querying groups from A-Z wont work, because i can have > 1000 groups which are beggining with character 'a'.
We've got much organizational units, but also there are more than 10 000 in single OU.
searchBase : $"OU={ou},{searchBase}";
var searchRequest = new SearchRequest(
distinguishedName: distingushedNameToFind,
ldapFilter: filter,
searchScope: SearchScope.Subtree,
attributeList: attributes.ToArray());
searchRequest.SizeLimit = 100000;
try
{
var results = ((SearchResponse)connection.SendRequest(searchRequest)).Entries;
return results;
}
catch
{
return null;
}
That's my piece of code, and even when i set searchRequest.SizeLimit = 100000 it will return only 1000 objects because i think it is also set to 1000 on server.
Has anyone have idea how to make some kind of pagination (like take, skip often used in REST) ?
I've not founded anything on docs or google...
question from:
https://stackoverflow.com/questions/65942509/ldap-searchrequest-pagelimit-pagination 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…