Windows 身份验证在 IIS 7.5 中不起作用 [英] Windows Authentication not working in IIS 7.5

查看:29
本文介绍了Windows 身份验证在 IIS 7.5 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使 Windows 身份验证在 IIS 7.5 上工作时遇到问题.该应用程序是在 asp.net MVC 3 中构建的内部站点.应用程序池使用特定域用户,站点使用 Windows 身份验证.每次我尝试启动该站点时,IE 都会提示我进行登录.

I am having a problem with getting windows authentication to work on IIS 7.5. The application is an internal site built in asp.net MVC 3. The application pool is using a specific domain user and the site is using windows authentication. Every time I try to launch the site IE prompts me for a login.

如果我取消足够多,网站就会出现,看起来很糟糕,但它有我的名字与我的 Windows 登录相关联显示在顶部.所以这告诉我该站点正确地获取了我的 Windows 凭据.

If I cancel enough the site comes up, messed up looking, but it has my name associated with my windows log in displayed at the top. So that tells me that the site is picking up my windows credentials correctly.

我添加了网络本地用户以读取服务器上的 inetpub 文件夹,现在它不提示使用 IE 8 登录.但在 chrome 上我收到此错误错误 338 (net::ERR_INVALID_AUTH_CREDENTIALS):未知错误.".

I added the Network local user to have read access to the inetpub folder on the server and now it doesn't prompt for login with IE 8. But on chrome I get this error "Error 338 (net::ERR_INVALID_AUTH_CREDENTIALS): Unknown error.".

它位于我们的 Intranet 站点区域.我应该说明这一点,但我忘记了.该站点曾经在我们的旧开发服务器上工作,但是当我升级到带有 IIS 7.5 的 Win 2008 R2 时,它停止工作.曾经在 2003 年使用 IIS 6.0.

It is in our intranet sites zone. I should have stated this but I forgot. The site used to work on our old development server but when I upgraded to Win 2008 R2 with IIS 7.5 it stopped working. Used to be on 2003 with IIS 6.0.

我想知道是否有人知道我还能尝试什么.在这一点上,我几乎在旋转我的轮子.

I am wondering if any one has any idea what else I can try. I am pretty much spinning my wheels at this point.

我已经尝试了以下链接中的所有解决方案,但都没有解决问题

I have tried all of the solutions in the links below and none of them have fixed the problem

http://forums.iis.net/t/1177154.aspx

http://forums.iis.net/t/1178188.aspx

使用集成 Windows 身份验证接收登录提示

http://warnajith.blogspot.com/2011/06/iis-75-401-unauthorized-access-error.html

http://forums.asp.net/t/1639511.aspx/1

https://superuser.com/questions/128746/iis-asks-for-login-pass-when-accessed-using-hostname-but-not-when-localhost-is

http://ask.metafilter.com/183636/Prompted-for-a-username-and-password-when-browsing-to-an-IIS-virtual-directory

IIS 7 和 Windows 身份验证

推荐答案

我找到了答案.这是一个未在 GUI 中映射的配置设置.我必须进入位于 <%SystemDrive%>/Windows/System32/inetsrv/config 的应用程序主机配置文件并更改以下设置.

I found the answer to this. It is a config setting that isn't mapped in the GUI. I had to go into the application host config file located at <%SystemDrive%>/Windows/System32/inetsrv/config and change the below settings.

默认设置在哪里

<提供者><add value="Negotiate"/></提供者></windowsAuthentication>

改成这个就行了.

<提供者><add value="NTLM"/></提供者></windowsAuthentication>

这篇关于Windows 身份验证在 IIS 7.5 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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