Possible Duplicate:
Can I get more than 1000 records from a DirectorySearcher in Asp.Net?
c# Active Directory Services findAll() returns only 1000 entries
I have a problem when trying read all user from AD. Active directory contain over 3000 user, but I can read only 1000. This is my code
public DirectoryEntry directoryEntry = new DirectoryEntry(ldap, userName, password);
public DirectorySearcher directorySearcher = new DirectorySearcher(directoryEntry);
var allUsers = directorySearcher.FindAll();