Silverlight 和 Active Directory 交互

发布于 2024-08-27 10:24:07 字数 1436 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏有森光若流苏 2024-09-03 10:24:07

我建议不要在应用程序中使用 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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文