如何用Active Directory中的WinNT://的接口,在某个组中添加一个用户?
如何用Active Directory中的WinNT://的接口,在某个组中添加一个用户?
楼主chen99yjeyotech(语过添情)2004-03-12 11:07:27 在 .NET技术 / ASP.NET 提问如何用Active Directory中的WinNT://的接口,在某个组中添加一个用户? 问题点数:20、回复次数:4Top
1 楼chen99yjeyotech(语过添情)回复于 2004-03-16 10:13:58 得分 0
自己UPTop
2 楼chen99yjeyotech(语过添情)回复于 2004-03-26 11:03:47 得分 0
想结贴,但没有理由Top
3 楼PassEnglsih(坚持)回复于 2004-04-08 09:50:01 得分 20
string dom ="LDAP://intdomain.com/CN=Users,DC=intdomain,DC=com";
System.DirectoryServices.DirectoryEntry entry1 = new System.DirectoryServices.DirectoryEntry(dom);
DirectoryEntries myEntries = entry1.Children;
DirectoryEntry myDirectoryEntry = myEntries.Add("CN=myuser", "user");
myDirectoryEntry.Properties.Value="test";
myDirectoryEntry.Properties.Value="htestsn";
myDirectoryEntry.Properties.Value="testdisplayname";
myDirectoryEntry.Properties.Value="testmail";
myDirectoryEntry.CommitChanges(); Top
-
相关文章
2秒记住本站域名
玩过泡泡龙吗?Readygo?Go! 再加上.Com.Cn的后缀,那就是大名小顶的readygo.com.cn
