I would recommend against using PowerShell from your app to interact with AD. PowerShell is more of a tool for admins than it is something you should use from your code. If you actually do use it from your code, then make sure it's very well abstracted away from your system.
I think using WCF to manage a large portion of this is a very good idea. Otherwise, look into RIA Services. Both give you the ability to authenticate from your Silverlight app to the services using AD accounts. And your Silverlight app can just offload the authentication to the services, as well. Once you're in your services, everything else should be taken care of for you.
Nothing definitive but this might help get you started:
发布评论
评论(1)
我建议不要在应用程序中使用 PowerShell 与 AD 交互。 PowerShell 更像是一个管理员工具,而不是您应该在代码中使用的工具。如果您确实在代码中使用它,那么请确保它从您的系统中很好地抽象出来。
我认为使用 WCF 来管理其中的很大一部分是一个非常好的主意。否则,请查看 RIA 服务。两者都使您能够使用 AD 帐户从 Silverlight 应用程序向服务进行身份验证。您的 Silverlight 应用程序也可以将身份验证卸载到服务中。一旦您开始工作,其他一切都应该为您处理好。
没有明确的信息,但这可能会帮助您开始:
帖子
帖子
I would recommend against using PowerShell from your app to interact with AD. PowerShell is more of a tool for admins than it is something you should use from your code. If you actually do use it from your code, then make sure it's very well abstracted away from your system.
I think using WCF to manage a large portion of this is a very good idea. Otherwise, look into RIA Services. Both give you the ability to authenticate from your Silverlight app to the services using AD accounts. And your Silverlight app can just offload the authentication to the services, as well. Once you're in your services, everything else should be taken care of for you.
Nothing definitive but this might help get you started:
post
post