Reputation: 336
I'm trying to load users incrementally from Active Directory which has a lot of users. (My memory can't hold all the data.)
I tried to use the DirectorySearcher.VirtualListView property to retrieve a portion of users each time, but it seems like the Server is not able to sort such a big amount of data. And it's giving me an error message:
The server does not support the requested critical extension
Is there a way to solve this problem?
Upvotes: 1
Views: 2081
Reputation: 6814
By default, DirectorySearcher is limited to 1,000 items, and if you need to return more, read Can I get more than 1000 records from a DirectorySearcher in ASP.NET?.
AD/LDAP should not be used to sort, search, etc. for large data to avoid affecting the performance of the server. Consider to use a database where you could load all objects/users from AD and where you could then query the data from.
Upvotes: 0