看一下这代码有什么错,运行到最后一句出错
string LDAPString="LDAP://192.168.0.2/CN=Users,DC=AWEI,DC=ORG";
DirectoryEntry de=new DirectoryEntry();
de.Path=LDAPString;
DirectoryEntries users=de.Children;
DirectoryEntry user=users.Add("xxx", "user");
user.Properties["samAccountName"].Add("xxx");
user.Properties["userPassword"].Add("xxx");
user.CommitChanges();