lx1920进来。请教相关LDAP操作的
wskty 2008-07-09 05:16:02 DirectoryEntry entry=new DirectoryEntry(OUPath,(string)conns["username"],(string)conns["password"]);
DirectoryEntry newEntry;
string entryName="cn=userName";
newEntry=entry.Children.Add(entryName,"user");
newEntry.UsePropertyCache=true;
newEntry.Properties["sAMAccountName"].Value="userName";
newEntry.Properties["userPrincipalName"].Value=="userName";
newEntry.Properties["sn"].Value="usetsn";
newEntry.Properties["displayName"].Value="userName";
newEntry.Properties["userAccountControl"].Value="66048";
newEntry.Properties["givenName"].Value="givename";
newEntry.CommitChanges();
能把这个详细讲讲吗?
看不懂这个。
我的QQ33867007。谢谢