简体   繁体   English

如何在Windows 7开发环境IIS 7.5上设置Windows身份验证

[英]How to setup Windows Authentication on Windows 7 development environment IIS 7.5

My overall goal is just to get the logged on users information for an Intranet site I'm developing without them providing their login (since they are already logged into their computer). 我的总体目标只是获取我正在开发的Intranet站点的登录用户信息,而无需他们提供登录信息(因为他们已经登录到计算机)。 So far I just get 401.1 errors and it keeps asking for my login/password. 到目前为止,我只收到401.1错误,并且不断询问我的登录名/密码。 Even though I provide my login/password, it still won't let me in. 即使我提供了登录名/密码,它仍然不会让我进入。

I've Enabled Windows Authentication from IIS > Sites > Default Web Site, added this to my web.config: 我已从IIS>站点>默认网站启用Windows身份验证,并将其添加到我的web.config中:

 <authentication mode="Windows" />
  <authorization>
    <deny users="?"/>
  </authorization>

My Application Pool is setup as Integrated / ApplicationPoolIdentity for .NET Framework 2.0. 我的应用程序池设置为.NET Framework 2.0的Integrated / ApplicationPoolIdentity。

If you are trying it on the IIS Server, and it is not working... try accessing the site from any other client. 如果您在IIS服务器上尝试使用它,但它不起作用...请尝试从任何其他客户端访问该站点。 If windows authentication works from any other machine, but not the machine where you are browsing it from, you must disable loop back check. 如果Windows身份验证可以在任何其他计算机上运行,​​但不能在您正在浏览的计算机上运行,​​则必须禁用回送检查。

Method 2 > http://support.microsoft.com/kb/926642 方法2> http://support.microsoft.com/kb/926642

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM