Active Directory - Creating Groups
Hi Experts,
I am using DirectoryServices to create user groups in my application. I am using the following code in my application.
DirectoryEntry dom = new DirectoryEntry (LDAPPath, UserID, Pwd);
DirectoryEntry dl = dom.Children.Add("CN=Employees", "group");
dl.CommitChanges();
However, I am getting the following error
"A constraint violation occurred."
can anyone tell me what this error is and how to solve this. Is there any better way of doing this?
Thanks in advance,
Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
|