.NET 的 ADSI 库/控件
是否有适用于 .NET/C# 的 ADSI 库?我已经能够找到一些代码来完成一些任务,但没有什么全面的。
我正在寻找一个可以直接放入我的代码中并运行而无需进行太多自定义的库?我正在考虑类似于 MEMM for Excel
谢谢。
Is there an ADSI Library out there for .NET/C#? I have been able to find bits and pieces of code to do some tasks but nothing comprehensive.
I'm looking for a library that I can just drop into my code and run without having to do too much customization? I'm thinking something along the lines of MEMM for Excel
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 .NET 1.x,实际上只有 System.DirectoryServices 命名空间 - 不幸的是,仅此而已。这就是基本的
DirectoryEntry
和DirectorySearcher
类,仅此而已.......NET 2.0 添加了
S.DS.ActiveDirectory
命名空间处理森林、域等结构对象变得更加容易。查看这篇 MSDN 文章 使用 .NET Framework 2.0 管理 Active Directory 的新方法< /a> 了解如何利用这些新功能。对于 .NET 3.5 及更高版本,有一个新的
S.DS.AccountManagement
命名空间,这使得使用主体(用户、组、计算机)变得更加容易。同样,要获得精彩的介绍,请阅读这篇 MSDN 文章 管理 . NET 框架 3.5。希望能有所帮助!
马克
For .NET 1.x, there's really only the
System.DirectoryServices
namespace - not much more, unfortunately. That's your basicDirectoryEntry
andDirectorySearcher
classes, and that's about it......NET 2.0 added the
S.DS.ActiveDirectory
namespace to handle structural objects like forests, domains, and so forth a lot easier. Check out this MSDN article New Ways to Manage Active Directory using the .NET Framework 2.0 on how to leverage those new capabilities.For .NET 3.5 and up, there's a new
S.DS.AccountManagement
namespace which makes working with principals (users, groups, computers) a lot easier. Again, for an excellent intro, read this MSDN article Managing Directory Security Principals in the .NET Framework 3.5.Hope that helps a bit!
Marc
您在
System.DirectoryServices.ActiveDirectory
程序集中拥有 .NET 中所需的所有内容。 Codeproject 上有大量示例。You have all that you need in .NET in the
System.DirectoryServices.ActiveDirectory
assembly. There is a large set of samples on Codeproject.