使用 Umbraco 7.12.4
我正在使用 AD LDS 实例对后台用户和成员进行身份验证(两者都使用完全相同的 AD LDS 实例进行身份验证)。
在 Web.config 中:
<providers>
<add name="BackofficeMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" attributeMapUsername="userPrincipalName" connectionUsername="username@example.com" connectionPassword="password" connectionProtection="None" />
<add name="UsersMembershipProvider" type="Umbraco.Web.Security.Providers.UsersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" useLegacyEncoding="true" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
<add name="UmbracoMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" attributeMapUsername="userPrincipalName" connectionUsername="username@example.com" connectionPassword="password" enableSearchMethods="true" connectionProtection="None"/>
</providers>
当我导航到后台的成员部分时,我收到以下错误:
System.NotSupportedException: The property 'LastActivityDate' is not supported by the Active Directory membership provider.
我无法确定发生了什么。在这一点上我最好的猜测是它与使用 AD LDS 而不是完整的 AD 有关?该错误听起来像是 AD LDS 不支持该属性。