DirectoryEntry ent = new DirectoryEntry("LDAP://serverip", "username", "password", AuthenticationTypes.Secure); ent.Children.Add("cn='" + TxtGroupName.Text + "'", "group"); ent.Properties["saMAccountName"].Add(TxtGroupName.Text); ent.Properties["groupScope"].Add("0x02"); ent.Properties["groupType"].Add("0x80000000"); ent.CommitChanges(); MessageBox.Show("creted");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)