Cannot get authentication working in IIS 8.5

心不动则不痛 提交于 2020-01-16 07:39:31

问题


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.

Under the "Authentication" feature we have only 2 options (despite restarting IIS numerous times):

  • Anonymous Authentication: Disabled
  • ASP.NET Impersonation: Disabled

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.

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>


回答1:


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!



来源:https://stackoverflow.com/questions/29394827/cannot-get-authentication-working-in-iis-8-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!