windows - IIS 7.5 Windows 身份验证失败,返回 401

标签 windows iis windows-authentication iis-7.5

自从我们从 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) 

有什么建议吗?

最佳答案

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

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

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

或者 SSRS Reportviewer ASP.NET Credentials 401 Exception

谢谢

关于windows - IIS 7.5 Windows 身份验证失败,返回 401,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3263237/

相关文章:

java - 跨多个域的 Tomcat 集成 Windows 身份验证

windows - Windows API 中是否有一种方法可以在特定应用程序运行时触发代码?

windows - Docker与Windows兼容

java - 需要在 Windows 2008 R2 上的压缩文件中按天导出 IIS 日志和 Tomcat 日志

javascript - HTML 'Server' 元素是什么以及为什么 IIS 拒绝呈现它

ruby-on-rails-4 - Rails 应用程序,带有 Windows 身份验证的 IIS 8.5 中的 REMOTE_USER 属性

python - 是否可以从另一个 python 脚本中运行一个 python 脚本?

php - 如何在Windows服务器上使用php将声音文件转换为其他格式?

c# - Web 服务器性能/测试工具

c# - WebException 响应未返回完整响应