User1508394307 posted
DirectoryEntry container = new DirectoryEntry("LDAP://...");
using (container)
{
DirectoryEntry newObject = container.Children.Add("CN=New User", "user");
using (newObject)
{
//now add properties as appropriate;
newObject.Properties["uid"].Add("newuser1");
newObject.CommitChanges();
}
}
If you search you can find multiple posts regarding same matter, e.g.
http://forums.asp.net/t/1683986.aspx/1
Hope this helps.