Posted on: 1/30/2014 2:17:08 AM | Views : 688

hi
i am using following code to read AD users, there is 11000 users in  the AD but this code return only 1000 users
is there any limitation to get AD users? how to get all AD users.
customer created s many department in AD and they added the users under the department. can i get the all users from AD using this code
Dim entry As New DirectoryEntry() entry.Path = "LDAP://" & adpath.Trim entry.Username = adusername.Trim entry.Password = adpassword.Trim entry.AuthenticationType = AuthenticationTypes.Secure Dim filter As String = "(&(objectCategory=person)(objectClass=user))" Dim adusearch As New DirectorySearcher(entry, filter) For Each sr As SearchResult In adusearch.FindAll If ReadEntry("givenName", sr).Trim = "" And ReadEntry("sn", sr).Trim = ...

Go to the complete details ...