0
Reply

i can't add ou to AD

l l

l l

May 12 2006 4:46 AM
1.6k

 
  There is a domain :LDAP://dc=www,dc=xxx,dc=com

and i wan to add a ou the the domaim.

my code is:


DirectoryEntry de=new DirectoryEntry ( LDAP://dc=www,dc=xxx,dc=com)de.Children.Add("OU=" + organizationUnitName, "organizationalUnit");                                                       de.CommitChanges();

 


it neither add a ou to the AD nor throw exception.

is my code error?


appreciated for any suggestion