简体   繁体   English

WCF Active Directory帮助器服务

[英]WCF Active Directory Helper Service

I've recently started learning the WCF Framework and I have an Active Directory Helper class/library that I've created to house my code for interacting with Active Directory. 我最近开始学习WCF框架,并且已经创建了一个Active Directory Helper类/库来容纳用于与Active Directory交互的代码。 I'm not sure if I'm reinventing the wheel trying to do this but it seems like it'd be a better implementation to run this Active Directory Helper library as a WCF service within my network and reference that service from any internal application. 我不确定是否要重新尝试执行此操作,但是将其作为WCF服务在网络中运行此Active Directory帮助器库并从任何内部应用程序引用该服务似乎是一个更好的实现。

My question is, is this something that would be a worthwhile endeavor, is what I'm doing redundant, or is there something else better out there that would already do what I'm looking to implement? 我的问题是,这是值得做的事情,还是我正在做多余的事情,还是还有其他更好的东西可以满足我的期望?

I've found this article in a Google search on this topic: 我在有关此主题的Google搜索中找到了这篇文章:
http://blog.waleedmohamed.net/2009/12/create-active-directory-service-using.html http://blog.waleedmohamed.net/2009/12/create-active-directory-service-using.html
but it wasn't very intuitive for me to follow along and I don't like the idea of putting domain credentials for something in any config file. 但是我遵循的方法不是很直观,而且我不喜欢将域凭据放入任何配置文件中的想法。 Other than that there doesn't seem to be a lot of information on the topic. 除此之外,关于该主题的信息似乎很少。

Update 更新资料
The AD Helper library I've developed utilizes the System.DirectoryServices namespace and implements things like: 我开发的AD Helper库利用System.DirectoryServices命名空间并实现以下内容:
Instantiate users in ADAM: http://www.koders.com/csharp/fidCD7765F2E9C23683407CEFAFAFB68D3157857BFB.aspx?s=cdef:%22Adam%22#L18 实例化ADAM中的用户:http://www.koders.com/csharp/fidCD7765F2E9C23683407CEFAFAFB68D3157857BFB.aspx?s=cdef:%22Adam%22#L18
Recursively get all users in a Security Group: http://www.volumeracing.com/blog/?p=129 递归获取安全组中的所有用户:http://www.volumeracing.com/blog/?p=129
etc... 等等...
My goal is to implement these things as a WCF service over NetTcp so instead of including this AD Helper dll in every project that would want to do these things as well, I can just have my projects call the WCF service. 我的目标是将这些东西作为NetTcp上的WCF服务实现,因此,除了将AD Helper dll包含在每个想要做这些事情的项目中之外,我还可以将我的项目称为WCF服务。 Then if I ever needed to add or update the AD Helper dll, I can do so without having to update all my projects that implement the AD Helper dll. 然后,如果我需要添加或更新AD Helper dll,则可以这样做,而不必更新实现AD Helper dll的所有项目。

I would check out these things before proceeding: 在继续操作之前,我将检查以下内容:

There's a lot going on in this space - however, in most cases, it requires very recent server OS versions (Windows Server 2008 or 2008 R2). 这个领域有很多事情要做-但是,在大多数情况下,它需要非常新的服务器操作系统版本(Windows Server 2008或2008 R2)。

I would take a good close look at these offerings from Microsoft, and then decide whether it's worth doing this on your own - or just use this instead. 我将仔细研究一下Microsoft提供的这些产品,然后决定是否值得自己完成此操作-或仅使用此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM