Getters/Setters dont match for ldapDateConvert of PasswordPolicyConfiguration

Description

The authenticator handler:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 <bean id="ldapAuthenticationHandler" class="org.jasig.cas.adaptors.ldap.lppe.LPPEAuthenticationHandler" p:principalIdAttribute="uid" c:authenticator-ref="authenticator" c:configuration-ref="ldapPasswordPolicyConfiguration"> <property name="principalAttributeMap"> <map> <entry key="member" value="member" /> <entry key="mail" value="mail" /> <entry key="displayName" value="displayName" /> </map> </property> </bean> The LPPE configuration: <bean id="ldapPasswordPolicyConfiguration" class="org.jasig.cas.adaptors.ldap.lppe.PasswordPolicyConfiguration"> <property name="ldapDateConverter"> <bean id="timeUnitDateConverter" class="org.jasig.cas.adaptors.ldap.lppe.TimeUnitLdapDateConverter"> <property name="timeUnit"> <util:constant static-field="java.util.concurrent.TimeUnit.SECONDS" /> </property> </bean> </property> <property name="alwaysDisplayPasswordExpirationWarning" value="true" /> <property name="passwordExpirationDateAttributeName" value="pwdMaxAge" /> <property name="accountLockedAttributeName" value="pwdAccountLockedTime" /> <property name="accountPasswordMustChangeAttributeName" value="pwdMustChange" /> <property name="passwordPolicyUrl" value="https://passwordmanagement.url" /> </bean>

The ldapDateConverter attribute doesn't have a proper getter/setter in the class (it has getDateConverter/setDateConverter instead, which doesn't match the attribute name), so Spring won't inject the attribute and throws an exception.

Environment

None

Status

Assignee

Misagh Moayyed

Reporter

Misagh Moayyed

Labels

None

Estimated End Date

None

Audience

None

Components

Fix versions

Affects versions

4.0 RC2

Priority

Trivial