ASP.NET更改密码控件已停止工作
我们有两个ASP.NET WebForms应用程序使用ADAM成员资格提供程序,其中一个包括ChangePassword控件。控件已开始使每次密码更改失败:ASP.NET更改密码控件已停止工作,asp.net,authentication,webforms,forms-authentication,adam,Asp.net,Authentication,Webforms,Forms Authentication,Adam,我们有两个ASP.NET WebForms应用程序使用ADAM成员资格提供程序,其中一个包括ChangePassword控件。控件已开始使每次密码更改失败: Password incorrect or New Password invalid. New Password length minimum: 6. Non-alphanumeric characters required: 0. 我们仍然可以成功地在ADAM实例上重置密码,并且登录仍然可以在应用程序中进行身份验证。EventVie
Password incorrect or New Password invalid.
New Password length minimum: 6.
Non-alphanumeric characters required: 0.
我们仍然可以成功地在ADAM实例上重置密码,并且登录仍然可以在应用程序中进行身份验证。EventViewer中没有引发异常,也没有错误
以下是Web.config的提供程序部分:
<membership defaultProvider="ADAMMembershipProvider">
<providers>
<clear/>
<add name="ADAMMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider"
connectionStringName="MembershipConnectionString"
connectionProtection="None"
connectionUsername="[the username]"
connectionPassword="[the password]"
enableSearchMethods="true"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
maxInvalidPasswordAttempts="3"
passwordAttemptWindow="5"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="true"/>
</providers>
</membership>
问题是默认情况下,ADAM不允许在不安全的连接上更改密码。解决这个问题有两种方法: 将connectionProtection属性设置为安全,并准备好必要的SSL证书。 或 使用并更改Ds行为以允许在不安全连接上传递op。