0

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
gimbup
  • 184
  • 3
  • 18

1 Answers1

0

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
user2316116
  • 6,726
  • 1
  • 21
  • 35