【问题标题】:User.Identity.Name returns blank / empty when impersonate is turned on with valid username and password当使用有效的用户名和密码打开模拟时,User.Identity.Name 返回空白/空
【发布时间】:2011-07-07 22:20:57
【问题描述】:

我们在应用程序中使用 Windows 身份验证,然后使用身份信息根据用户在 AD 组中的成员身份对其进行授权。 为了启用数据库连接,我们启用了模拟并提供了有效的用户 ID 和密码。现在在我们的授权模块中,User.Identity.Name 返回空白/空。 请帮忙。我们使用 IIS7 来托管应用程序。

【问题讨论】:

    标签: authentication iis-7 impersonation


    【解决方案1】:

    你有没有

    1.) 打开 IIS 7 Windows 身份验证?

    2.) 禁用匿名身份验证,这将优先于 Windows 身份验证?

    3.) 将您的 ASP.NET 身份验证模式设置为“windows”?

    【讨论】:

    • 我也有同样的问题:\,User.Identity.Name 的任何替代方案?
    猜你喜欢
    • 1970-01-01
    • 2015-10-23
    • 1970-01-01
    • 1970-01-01
    • 2017-06-01
    • 1970-01-01
    • 2011-12-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多