Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

To use the code, add the following beans to deployerConfigContext.xml: 

Code Block
borderStylesolid
titledeployerConfigContext.xmlborderStylesolid
<bean
                id="accountStatusAction"
                class="org.jasig.cas.web.flow.AccountStatusAction"
                p:accountStatusGetter-ref="accountStatusGetter"
        />
       
  <bean
                id="accountStatusGetter"
                class="org.jasig.cas.web.support.ExtendedLdapAccountStatusGetter"
                p:filter="cn=%u"
                p:statusAttributeName="description"
                p:searchBase="ou=People,dc=example,dc=be"
                p:contextSource-ref="contextSource"
                p:daysTillLocked="365"
                p:warningDays="30"
        />
                
<bean
                id="contextSource"
                class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource"
                p:url="ldap://test.example.be:389"
                p:userDn="cn=IDP,dc=example,dc=be"
                p:password="secret">
                <property name="baseEnvironmentProperties">
                        <map>
                                <entry>
                                        <key>
                                                <value>java.naming.security.authentication</value>
                                        </key>
                                        <value>simple</value>
                                </entry>
                        </map>
                </property>
        </bean>
        <bean
                id="chooseChangepwdViaFormAction"
                class="org.jasig.cas.web.flow.ChooseChangepwdViaFormAction"
                />
</beans>

...