Windows 身份验证不提示登录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1640347/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Windows Authentication doesn't prompt for login
提问by Kolten
I've had Windows Authentication setup on an area of our website for some time now, and it has worked flawlessly so far. Recently, the login prompt stopped appearing and went straight to "Page cannot be displayed" for some reason. While connected to our network, the page works fine. Outside our network, users are supposed to receive a login prompt but they now do not, instead receiving the "page cannot be displayed" error.
我在我们网站的某个区域设置了 Windows 身份验证已经有一段时间了,到目前为止,它运行良好。最近,由于某种原因,登录提示不再出现,直接进入“页面无法显示”。当连接到我们的网络时,页面工作正常。在我们的网络之外,用户应该会收到登录提示,但他们现在没有,而是收到“页面无法显示”错误。
Why would this suddenly occur, and how is it fixed? I have tried removing the virtual directory and re-adding it but nothing seems to work.
为什么会突然发生这种情况,如何解决?我尝试删除虚拟目录并重新添加它,但似乎没有任何效果。
The strange thing is this is only happening in IE - Google Chrome works fine (I receive the login prompt).
奇怪的是,这只发生在 IE 中——谷歌浏览器工作正常(我收到登录提示)。
Is there a setting or something inside of IIS that disables this login prompt or something? It is strange it is an IE specific issue as well - there were no changes to the state of IE from one day when it was working to the next where it wasn't.
IIS 内部是否有禁用此登录提示的设置或其他内容?奇怪的是,这也是 IE 特定的问题 - 从一天工作到下一天不工作,IE 的状态没有发生变化。
Anyone have ideas on what might be causing this?
任何人都对可能导致这种情况的原因有任何想法?
Thanks
谢谢
采纳答案by Justin Niessner
Oddly enough, I'd wonder why you were getting the login prompt before now.
奇怪的是,我想知道为什么您之前会收到登录提示。
If you're logged in to Windows and the site you're browsing to uses Windows Auth, IE will automatically try to pass the logged in user's credentials to the site (this all depends on your domain configuration/trust setup...something may have changed with those settings at the domain level that changed the behavior of your IE).
如果您登录到 Windows 并且您正在浏览的站点使用 Windows 身份验证,IE 将自动尝试将登录用户的凭据传递到该站点(这一切都取决于您的域配置/信任设置...更改了 IE 行为的域级别的那些设置已更改)。
Chrome/Firefox/Safari don't have this functionality, which is why you're still getting a login prompt.
Chrome/Firefox/Safari 没有此功能,这就是您仍然收到登录提示的原因。
回答by KellCOMnet
There is a checkbox in internet options->advanced tab to enable/disable Windows Authentication, but you said that there were no changes. Either way it is something to check.
Internet 选项-> 高级选项卡中有一个复选框可以启用/禁用 Windows 身份验证,但您说没有任何更改。无论哪种方式,它都需要检查。
回答by Vivek
You can start by taking a network trace both Internally and Externally, reproduce the issue and see if the request actually reaches the web server. Also, check the IIS logfile for the "Page Cannot Be Displayed" response.
您可以首先在内部和外部进行网络跟踪,重现问题并查看请求是否确实到达了 Web 服务器。此外,请检查 IIS 日志文件以获取“无法显示页面”响应。
Let me know if that helps or if you have more questions.
如果这有帮助,或者您有更多问题,请告诉我。
Regards, Vivek.
问候,维维克。
回答by Shiraz Bhaiji
It sounds like you are hitting a security setting in IE.
听起来您在 IE 中遇到了安全设置。
IE stops windows authentication information from being sent to sites that you do not trust.
IE 会阻止 Windows 身份验证信息发送到您不信任的站点。
You could try adding the site to your list of trusted sites.
您可以尝试将该站点添加到受信任站点列表中。
回答by EricLaw
You need to take a network capture (www.fiddlercap.com) to get any real help with this.
您需要进行网络捕获 (www.fiddlercap.com) 才能获得真正的帮助。
IE supports the "Negotiate" protocol in addition to NTLM; Chrome and other browsers typically only support NTLM.
IE除了支持NTLM,还支持“Negotiate”协议;Chrome 和其他浏览器通常只支持 NTLM。