Adding a user to an Active Directory group that contains more than 1,000 members
-
I am having some difficulty adding a member to a directory group object that has 1,000 or more members already in it. For example, if I have a group object with 1,300 existing members in it, and I attempt to add another member, my list of members is truncated to 1,001. Since I am using a Windows 2000 directory server, I assume it's related to the 1,000 per page issue. It works just fine if there are less than 1,000 members in the group. Here is the code I am using to add the member: *****************BEGIN CODE******************** string AdsPath = "LDAP://CN=GroupObject,DC=DomainA,DC=CorpA,DC=COM"; // bind DirectoryEntry de = new DirectoryEntry(AdsPath); // add member de.Properties["member"].Add("CN=user,DC=DomainA,DC=CorpA,DC=com"); // commit de.CommitChanges(); de.Close() ******************END CODE******************** Thanks in advance for your help. ;)