在 ASP.Net 中使用 LDAP 进行基于角色的身份验证

发布于 2024-10-05 03:36:48 字数 208 浏览 0 评论 0原文

我需要使用 Active Directory 域服务和 LDAP 在 ASP.Net Web 应用程序中实现基于角色/组的身份验证。我想使用用户的 Windows 登录身份凭证进行身份验证。我不知道从哪里开始。 如果有人实现了类似的要求,请回复并提供一些指示。

另外,请告诉我如何在我的组织网络中测试这一点以及 LDAP 服务器凭据应该是什么?我可以添加我们的自定义组吗? 请尽快回复。

I need to implement Role/Group based authentication in my ASP.Net web application using Active Directory Domain Services and LDAP. i want to use user’s windows logon identity credentials for authentication. I have no clue where to start.
If anybody have implemented the similar requirement, please reply with some pointers.

Also, please let me know, how i can test this in my organisation network and What should be the LDAP server credentials? Can i add our custom groups?
Please reply asap.

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

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

发布评论

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

评论(1

单身狗的梦 2024-10-12 03:36:49

我自己正在研究这个。过去我在windows 2003上实现了Azman(授权管理器)(它是windows 2003自带的)。这看起来效果很好;我的应用程序已经生产了 3 年,配置相当复杂,并且运行良好。

Azman在windows 2008上得到了进一步的开发,但我还没有在这个平台上实现。

我喜欢 Azman 的一点是,它将授权管理从应用程序代码本身中抽象出来,并且可以提供非常精细的权限。也就是说,我仍在寻找替代方案;由于某种原因,业务规则功能总是感觉有点不稳定,至少对于我的应用程序来说变得非常重要(业务规则让您可以围绕权限设置上下文......例如,鲍勃可以编辑一些文本框,但仅限于特定记录)。无论如何,这里有一些可能有帮助的链接:

http://support.microsoft.com/kb/324470

http://msdn.microsoft.com/en-us/magazine/cc300469。 aspx

我不确定这些文章是否回答了您所有的问题..或者您可能找到了另一个解决方案?如果读完后您还有更多问题,请大喊:)

I'm just looking into this myself. In the past I've implemented Azman (authorization manager) on windows 2003 (it comes with windows 2003). This seems to work well; my app's been in production for 3 years with a fairly complex config and has held together ok.

Azman has been developed further with windows 2008, but I haven't implemented on this platform yet.

The thing that I liked about Azman was that it abstracts the authorization management away from the app code itself and can give very granular permissions. That said I'm still looking around for alternatives; the biz rule functionality always felt abit flaky for some reason and at least for my app became very important (biz rules let you set context around rights... so for example bob can edit some textbox, but only for specific records). Anyhow here's a few links that might help:

http://support.microsoft.com/kb/324470

http://msdn.microsoft.com/en-us/magazine/cc300469.aspx

I'm not sure if these articles answer all your questions.. or maybe you've found another solution? If after reading you have more questions just yell :)

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