l l

l l

  • NA
  • 2
  • 0

i can't add ou to AD

May 12 2006 4:46 AM

 
  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