Last post Nov 02, 2007 07:42 AM by dipesh97
Oct 26, 2007 10:37 PM|adver321|LINK
HI, I find many post about 1 group has more than 1000 users but can't find how to solve the domain has more than 1000 groups.
I use the code below only can load group less than 1000, anyone can help? Thanks!!!!!!!!![<:o)]
using (DirectoryEntry root = new DirectoryEntry("LDAP://" + domainName))
// search AD for all groups
DirectorySearcher searcher = new DirectorySearcher();
searcher.SearchRoot = root;
searcher.Filter = ("(objectCategory=group)");
foreach (SearchResult mySearchresult in searcher.FindAll())
ldap tutorial directoryservices
Nov 02, 2007 05:45 AM|XiaoYong Dai – MSFT|LINK
Here is the quotes from MSDN:
If the maximum number of returned entries and time limits exceed the limitations that are set on the server, the server settings override the component settings
You have to contact to your domain admin to adjust the values for you, your server might be having SizeLimit set to a default 1000
It's also described in this thread
Nov 02, 2007 07:42 AM|dipesh97|LINK
I'm getting an error in your code while instantiating DirectoryEntry.Can u just briefly explain the first parameter used like wat all u need to provide
deDirEntry1 = new DirectoryEntry("LDAP://100.100.100.100:678/cn=dipesh_sal,ou=organisation.com,o=org,dc=conserver"
Im getting an exception "An invalid dn syntax has been specified".
Thank you in advance