ASP.NET / Active Directory的 - 支持自动登录的域用户 [英] ASP.NET / Active Directory - Supporting auto login for domain users

查看:526
本文介绍了ASP.NET / Active Directory的 - 支持自动登录的域用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个简单的ASP.NET网站,将运行在一个WS2008(IIS7)框中的内部网和运行XP / IE8的用户响应。一切域相连,我想自动登录的用户很像的SharePoint一样。

I am developing a simple ASP.NET website that will run on the intranet on a WS2008(IIS7) box and respond to users running XP/IE8. Everything is domain connected and I am trying to automatically login the users much like SharePoint does.

在我开发计算机(XP),通过VS运行的网站时,一切正常。我可以皮卡上完美的用户。我使用以下设置:

On my dev machine (XP), when running the site through VS, everything works. I can pickup on the user perfectly. I am using the following settings:

<authentication mode="Windows"/>
<identity impersonate="true"/>
<anonymousIdentification enabled="false"/>

<authorization>
    <allow users="*"/>
    <deny users="?"/>
</authorization>

然而,当我发布到WS2008中,这是行不通的。显然,我很想念在IIS7设置来支持这一点。

However, when I publish to the WS2008 box, it doesn't work. Clearly I am missing a setting in IIS7 to support this.

我的身份验证设置下面的网站:

I have the following set for Authentication on the site:

Anon Auth - Enabled
ASP.NET Impersonation - Enabled
Basic Auth - Disabled
Forms Auth - Disabled
Windows Auth - Disabled

我在想什么? 谢谢

What am I missing? Thanks

推荐答案

尝试禁用匿名登录的IIS。转到对IIS网站的安全选项,然后取消选择启用匿名登录。确保Windows身份验证检查。

Try disabling anonymous login from the iis. Go to the security options for the site on IIS and uncheck the Enable Anonymous login. Make sure that windows authentication is checked.

:如果在尝试登录与IE浏览器显示的登录框,还有就是你可以设置,使IE浏览器发送用户名在Intranet站点中使用时的设置。转到工具> Internet选项>安全,在安全设置中选择该选项的自动使用当前用户名和密码自动登录只在Intranet区域的你要确保您要使用该网站是在Intranet区域补充说。

: If the login box appears when trying to login with IE, there is a setting that you can set so that IE sends the username when used in the intranet sites. Go to tools > internet options > security and in the security settings select the option Automatic Logon with current username and password or Automatic Logon only in intranet Zone You have to make sure that the site you are trying to use is added in the intranet zone.

有与Firefox类似的设置和铬我相信,但我不知道如何设置了

There is a similar setting with firefox and chrome I believe but I am not sure how to set it up

这篇关于ASP.NET / Active Directory的 - 支持自动登录的域用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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