Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Adding a user to an Active Directory group that contains more than 1,000 members

Adding a user to an Active Directory group that contains more than 1,000 members

Scheduled Pinned Locked Moved C#
helpcsscomsysadminwindows-admin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Christian Merritt
    wrote on last edited by
    #1

    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. ;)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups