无法在 IIS 8.5 中进行身份验证 [英] Cannot get authentication working in IIS 8.5
问题描述
我们已在 Windows 2012 服务器上为 IIS 8.5 安装了 Basic 和 Windows 身份验证,但无法让服务器提示客户端输入凭据.
We have installed Basic and Windows authentication for IIS 8.5 on our Windows 2012 server but cannot get the server to prompt the client for credentials.
在身份验证"功能下,我们只有 2 个选项(尽管多次重新启动 IIS):
Under the "Authentication" feature we have only 2 options (despite restarting IIS numerous times):
- 匿名身份验证:已禁用
- ASP.NET 模拟:已禁用
当我们将匿名设置为禁用时,我们会得到 401 但没有 Authenticate 标头.当我们启用它时,我们会得到 200,但是是匿名的.
When we set anonymous to Disabled we get a 401 but no Authenticate headers. When we Enable it we get a 200 but are anonymous.
我们已经尝试了 web.config
中的各种设置,这是当前情况:<代码><system.web><认证模式=Windows"/><授权><deny users="?"/></授权></system.web>
We've tried all sorts of settings in web.config
and here is the current situation:
<system.web>
<authentication mode="Windows" />
<authorization>
<deny users="?"/>
</authorization>
</system.web>
推荐答案
通过以管理员身份运行 IIS 管理控制台解决了这个问题(感谢问题 #8067448).出于某种原因,新的身份验证选项(Basic 和 Windows)现在出现并且可以启用.Sheesh 微软!
Solved it by running the IIS Admin console as an administrator (thanks to question #8067448). For some reason the new authentication options (Basic and Windows) now appear and could be enabled. Sheesh Microsoft!
这篇关于无法在 IIS 8.5 中进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!