Windows身份验证设置 [英] Windows Authentication Settings

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

问题描述




我有一个网站,该网站中的Intranet用户登录是自动进行的(通过Windows loginID/pwd进行了身份验证),并且运行良好.
现在需要将网站更改为另一台服务器.
访问新服务器时,系统会提示您输入用户名/密码,而不是自动获取用户名/密码.
所有网站设置都与旧网站相同,但无法确定根本原因. 任何帮助表示赞赏

Hi,


I have a website in which intranet user''s login is automated (authenticated via windows loginID/pwd) and it was working fine.
Now there was a need to change website to another server.
When accessing the new server,website is prompted for username/pwd rather than taking it automatically.
All the website settings is same as old one but cannot identify what''s the root cause.
Any help is appreciated

Thanks

推荐答案

First Go to Appdata,Open the Asp.net membership.It will get opened in the server explorer.Right Click on it and select publish.It will create the sql script.Execute it on the server.

and then add the following in web.config.Pls change the connection string name alone

<roleManager enabled="true">
            <providers>
                <clear/>
                <add connectionStringName="KTWConnectionString" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0,  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a "/>
            </providers>
        </roleManager>
and

<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a " connectionStringName="KTWConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/"/>
    </providers>
</membership>


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

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