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

查看:243
本文介绍了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提示登录,但对铬我得到这个错误错误338(净值:: 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站点区域。我应该说明这一点,但我忘了。该网站使用我们的老开发服务器上工作,但是当我升级到赢得2008 R2与IIS 7.5它停止工作。曾经是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.

我想知道如果任何人有任何想法还有什么我可以试试。我是pretty多纺纱我的车轮在这一点上。

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

<一个href=\"http://stackoverflow.com/questions/5402381/receiving-login-prompt-using-integrated-windows-authentication\">Receiving使用集成Windows身份验证的登录提示

<一个href=\"http://warnajith.blogspot.com/2011/06/iis-75-401-unauthorized-access-error.html\">http://warnajith.blogspot.com/2011/06/iis-75-401-unauthorized-access-error.html

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

<一个href=\"http://superuser.com/questions/128746/iis-asks-for-login-pass-when-accessed-using-hostname-but-not-when-localhost-is\">http://superuser.com/questions/128746/iis-asks-for-login-pass-when-accessed-using-hostname-but-not-when-localhost-is

<一个href=\"http://ask.metafilter.com/183636/Prompted-for-a-username-and-password-when-browsing-to-an-IIS-virtual-directory\">http://ask.metafilter.com/183636/Prompted-for-a-username-and-password-when-browsing-to-an-IIS-virtual-directory

IIS 7和Windows身份验证

推荐答案

我找到了答案。它是不是在GUI映射一个配置设置。我不得不进入位于&LT应用主机配置文件;的%SystemDrive%> /的Windows / System32下/ INETSRV /配置和更改设置以下

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.

默认设置,其中

&LT; windowsAuthentication启用=真正的&GT;
     &LT;供应商&GT;
          &LT;增加价值=谈判/&GT;
     &LT; /供应商&GT;
&LT; / windowsAuthentication&GT;

更改为这个和它的工作。

Changed to this and it worked.

&LT; windowsAuthentication启用=真useKernelMode =真useAppPoolCredentials =真&GT;
     &LT;供应商&GT;
          &LT;增加价值=NTLM/&GT;
     &LT; /供应商&GT;
&LT; / windowsAuthentication&GT;

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

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