内联网ASP.NET网站的Windows身份验证和重现Windows登录框 [英] Windows authentication of Intranet ASP.NET website and reappearing windows login box

查看:498
本文介绍了内联网ASP.NET网站的Windows身份验证和重现Windows登录框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想启用自动窗口验证我们的ASP.NET内联网工作。我已经改变了从匿名到Windows身份验证我们的IIS 7.5服务器只启用上的认证,并改变了Web.config文件的网站:

I'm trying to enable automatic Window authentication working on our ASP.NET Intranet. I've changed the Authentication on our IIS 7.5 server from Anonymous to Windows Authentication Enabled only, and changed the Web.config file for the website to:

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

通过IE 8在访问网站时,会出现Windows登录框,我输入有效凭据,但在登录窗口反复出现,如果它不接受我的凭据。通过反复取消登录框消失,而且我的登录名可以在网站上查看。是否有任何可能的原因登录框,以保持雨后春笋般冒出来,即使被输入有效的凭据?我已经重新启动服务器/清除浏览器缓存等。

The Windows login box appears when accessing the website via IE 8, I enter valid credentials, but the login window keeps reappearing as if it does not accept my credentials. By repeatedly cancelling the login box it disappears, and my login name can be viewed on the website. Is there any possible reason for the login box to keep popping up even though valid credentials are being entered? I've restarted the servers / cleared browser cache etc.

另外,我非常希望用户在登录框中输入一次登录信息,而不是被要求再次输入登录信息时,他重新打开浏览器。

Also, ideally I would like the user to enter the login details once in the login box and not be required to reenter login details whenever he reopens the browser.

推荐答案

您应该能够配置,所以你不必看到登录提示都没有。 IIS似乎因为它要求你的凭据正确配置。所以,我考出浏览器设置。有些事情我会检查是:

You should be able to configure it so you don't have to see the login prompt at all. IIS seems to be configured correctly since it's asking you for credentials. So I would test out the browser settings. Some things I would check for are that:


  1. 确保您的浏览器识别网站作为你的内网之中。你应该可以看到你的状态栏右侧附近的内联网区域图标。

  2. 如果没有,你应该把它添加到您的本地站点列表中。

  3. 检查您的凭据被传递到本地Intranet站点。

  4. 确保您的链接都是一致的,例如,如果您使用不同的DNS名称或IP访问,浏览器不一定会知道他们属于同一个网站,并尝试重新进行身份验证。

别的东西,可能什么是如果你想,你的帐户是不允许访问的资源。因此,确保没有发生。我想知道,既然你说取消打得到你的​​页面显示登录名。

Something else that might be going on is if you're trying access resources that you're account isn't allowed to. So make sure that isn't happening. I'm wondering since you said hitting cancel gets your page to show the login name.

这篇关于内联网ASP.NET网站的Windows身份验证和重现Windows登录框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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