I am using the default one with the following modification:

1) comment out SimpleTestUsernamePasswordAuthenticationHandler.
2) Add bean BindLdapAuthenticationHandler.

<bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
    <property name="filter" value="uid=%u" />
    <property name="searchBase" value="ou=ou,dc=dc,dc=dc" />
    <property name="contextSource" ref="contextSource" />
</bean>

3) Add Spring ContextSource.

<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContex
tSource">
    <property name="pooled" value="false" />
    <property name="url" value="ldaps://ldap.dc.dc/" />
    <property name="baseEnvironmentProperties">
        <map>
            <!-- Three seconds timeout. -->
            <entry key="com.sun.jndi.ldap.connect.timeout" value="3000" />
            <entry key="com.sun.jndi.ldap.read.timeout" value="3000" />
            <entry key="java.naming.security.authentication" value="simple" />
        </map>
    </property>
</bean>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to