【问题标题】:IIS 7.5 Windows Authentication failed with 401IIS 7.5 Windows 身份验证失败,出现 401
【发布时间】:2010-07-16 08:45:02
【问题描述】:

自从我们从 IIS 7.0 迁移到 IIS 7.5 后,Windows 身份验证不再适用于远程请求。如果我在网络服务器上打开网站,一切正常。

web.config:

<authentication mode="Windows" />
<identity impersonate="true" />
<authorization>
        <deny users="?" />
        <allow users="*" />
</authorization>

IIS 设置:

Authentication (enabled): ASP.NET Impersonation, Windows Authentication (all others are disabled)
ApplicationPool: Managed Pipeline Mode -> Classic, Identity -> ApplicationPoolIdentity

请求跟踪失败:

MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName: WindowsAuthenticationModule
Notification: 2
HttpStatus: 401
HttpReason: Unauthorized 
HttpSubStatus: 1
ErrorCode: 2148074254 
ConfigExceptionInfo:  
Notification: AUTHENTICATE_REQUEST
ErrorCode No credentials are available in the security package (0x8009030e) 

有什么建议吗?

【问题讨论】:

    标签: windows iis windows-authentication iis-7.5


    【解决方案1】:

    我认为我们遇到了两跳问题。如果我将我们的 SQL/Oracle DB 移动到运行 IIS 的服务器上,它就可以工作。

    所以这里有一篇描述解决方案的文章。

    How to configure SQL and IIS for two hop kerberos authentication 2

    SSRS Reportviewer ASP.NET Credentials 401 Exception

    谢谢

    【讨论】:

      【解决方案2】:

      您使用的是哪个客户端?您可能正在运行一个尝试进行预身份验证的客户端,但在 IIS 7 中,我们默认使用内核模式身份验证,这需要质询。如果是这种情况,您可以通过选择 Windows 身份验证条目并单击高级设置来禁用内核模式身份验证,您应该会看到一个复选框,允许您为特定应用程序禁用它,如果这是问题,它应该可以工作。

      【讨论】:

      • 禁用它后,我将收到两个 FailedTrace 请求:第一个:请求摘要 URL computername:80 App Pool AppPoolName Authentication NOT_AVAILABLE User from token Activity ID {00000000-0000-0000-0A00-0080000000FC} MODULE_SET_RESPONSE_ERROR_STATUS 401.2第二:请求摘要:Url computername:80 App Pool AppPoolName Authentication NTLM User from token domain\username Activity ID {00000000-0000-0000-0C00-0080000000FC} MODULE_SET_RESPONSE_ERROR_STATUS 401.5 看起来第一个请求是 PreAuthentication 但我已禁用 KernelMode .
      • 我们尝试了以下客户端,但没有成功,Windows XP (Safari, Firefox, IE) 和 Windows 7 (Chrome, IE)
      猜你喜欢
      • 2012-09-23
      • 2021-06-14
      • 1970-01-01
      • 1970-01-01
      • 2010-11-18
      • 2016-01-26
      • 2018-07-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多