窗口身份验证适用于localhost,但不适用于ipaddress [英] window authentication works on localhost but not by ipaddress

查看:136
本文介绍了窗口身份验证适用于localhost,但不适用于ipaddress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们在其中一个项目中进行了窗口身份验证。当我们通过localhost访问它时它工作正常并返回当前用户身份但是当我们尝试通过ip地址访问它时它会提示一个不应出现的登录屏幕?我是否会错过IIS上的任何设置?

解决方案

以下是您在堆栈溢出时发布的情况的答案:



我有一个类似的问题,我想只保护我网站的某个部分。除IE之外,一切都运作良好。我启用了匿名和Windows身份验证。对于Anonymous,Identity设置为Application Pool标识。问题出在Windows身份验证上。经过一番挖掘后,我解雇了小提琴手并发现它使用的是Kerberos作为提供者(实际上它默认设置为Negotiate)。我将它切换到NTLM并修复它。



详情请查看:



http://stackoverflow.com/questions/5402381/receiving-login-prompt-using-integrated -windows-authentication [ ^ ]

Hi,

we have a window authentication in one of our project. when we access it by localhost it works fine and return current user identity but when we try to access it by ip address it prompts a login screen which should not appear? do i miss any setting on IIS ?

解决方案

Here is an answer to your situation as posted on stack overflow:

I had a similar issue whereby I wanted to protect only a certain part of my website. Everything worked well except in IE. I have both Anonymous and Windows Authentication enabled. For Anonymous, the Identity is set to the Application Pool identity. The problem was with the Windows Authentication. After some digging around I fired up fiddler and found that it was using Kerberos as the provider (actually it is set to Negotiate by default). I switched it to NTLM and that fixed it.

For details, check:

http://stackoverflow.com/questions/5402381/receiving-login-prompt-using-integrated-windows-authentication[^]


这篇关于窗口身份验证适用于localhost,但不适用于ipaddress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆