OK, many thanks for your feedback, I was not expected to have to build using 
maven  also for the quick tutorial, i'll try.

For completion, this is what i done:
1. downloaded and extracted the CAS installation 3.4.3.1 war

2. found the "cas-server-webapp-3.4.3.1.war" under "modules" directory

3. added the following in pom.xml:
<dependency>
  <groupId>${project.groupId}</groupId>
  <artifactId>cas-server-support-ldap</artifactId>
  <version>${project.version}</version>
</dependency>

4. added the following in deployerConfigContext.xml:
<bean id="contextSource"
  class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
  <property name="pooled" value="true"/>
  <property name="urls">
    <list>
      <value>ldap://localhost:10389</value>
    </list>
  </property>
  <property name="userName" value="uid=admin,ou=system"/>
  <property name="password" value="secret"/>
  <property name="baseEnvironmentProperties">
    <map>
      <entry key="java.naming.security.authentication" value="simple" />
    </map>
  </property>
</bean>

5. removed the demo authentication handler
6. added the LDAP fast bind:
<bean class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >
  <property name="filter" value="uid=%u,ou=system" />
  <property name="contextSource" ref="contextSource" />
</bean>

7. 11.Added the cas-server-support-ldap-3.4.3.1.jar from the CAS installation 
to C:\apache-tomcat-6.0.29\webapps\cas-server-webapp-3.4.3.1\WEB-INF\lib.


bye
Marco

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