Uploaded image for project: 'CAS Server'
  1. CAS-1401

Getters/Setters dont match for ldapDateConvert of PasswordPolicyConfiguration

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0 RC2
    • Fix Version/s: 4.0
    • Component/s: LPPE
    • Labels:
      None

      Description

      The authenticator handler:

              <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.

        Attachments

          Activity

            People

            • Assignee:
              mmoayyed Misagh Moayyed
              Reporter:
              mmoayyed Misagh Moayyed
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: