我正在尝试使用 ADMembershipProvider 连接到本地 ADAM 服务器,但标题中出现错误。如果我删除启用密码重置及其依赖的属性,我就可以连接。
我试图用谷歌搜索它,但没有任何结果。以下是我的提供商配置。任何建议将不胜感激。
<providers>
<add name="AspNetActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADService"
connectionUsername="[username]"
connectionPassword="[password]"
connectionProtection="Secure"
enableSearchMethods="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
description="Default AD connection"
requiresUniqueEmail="true"
clientSearchTimeout="30"
serverSearchTimeout="30"
attributeMapPasswordQuestion="department"
attributeMapPasswordAnswer="division"
attributeMapFailedPasswordAnswerCount="badPwdCount"
attributeMapFailedPasswordAnswerTime="badPasswordTime"
attributeMapFailedPasswordAnswerLockoutTime="lockoutTime"
attributeMapEmail = "mail"
attributeMapUsername = "userPrincipalName"
maxInvalidPasswordAttempts = "5"
passwordAttemptWindow = "10"
passwordAnswerAttemptLockoutDuration = "30"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"/>
</providers>
仅供参考...与类似结果最接近的是有人在类似属性上遇到此错误,他刚刚重新启动了机器。那对我不起作用。我确实也找到了这篇文章http://blogs.msdn.com/b/dansellers/archive/2005/10/20/483272.aspx,但我正在努力让 LDAP 管理员进行此更改。特别是因为我们已经拥有这些属性。