【问题标题】:How to authenticate current user with Active Directory?如何使用 Active Directory 对当前用户进行身份验证?
【发布时间】:2014-09-22 04:45:28
【问题描述】:

我想使用 Active Directory 对当前用户进行身份验证,我不想使用用户密码。如果用户登录系统,那么它应该检查用户是否有效的活动目录。我有很多代码,但他们正在使用密码..

请帮忙。

【问题讨论】:

    标签: c# asp.net active-directory


    【解决方案1】:

    看一个类似的问题: https://webmasters.stackexchange.com/questions/31866/active-directory-auto-login-to-website-for-domain-users

    这篇文章也将指导您实现相同的步骤: How to implement Windows authentication and authorization in ASP.NET

    以上两个例子都没有使用任何密码登录。

    如果您的 Internet Explorer 仍然要求您提供登录详细信息,则可能是因为您的 IE 设置:

    在 Internet Explorer 中,转到工具 -> Internet 选项 -> 安全 -> 自定义级别 -> 向下滚动到底部并选择“使用当前用户名和密码自动登录” -> 确定 -> 确定 -> 关闭并重新打开浏览器。

    这应该允许经过 AD 身份验证的用户直接进入您的页面。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-01
      • 2017-08-24
      • 1970-01-01
      • 1970-01-01
      • 2020-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多