Hi all,

I am trying to construct the appropriate war with ldap support but I receive 
some errors.


1. svn checkout https://www.ja-sig.org/svn/cas3/trunk/
   Checked out revision 46109.
2.  mvn package install
   complete with [ERROR] BUILD FAILURE


3. second way
4. downloaded  cas-server-3.3.2-release.tar.gz
5. in cas-server-webapp copied pom.xml from cas-server-support-ldap
6. mvn package install
complete with
  ....
    [INFO] JA-SIG CAS LDAP Support ............................... SUCCESS 
[4.526s]
  ....

5. copy cas-server-webapp/target/cas.war to tomcat e restart
   https://server/cas is wowrking

6. modifying deployerConfigContext.xml for ldap with:
   <property name="authenticationHandlers">
                        <list>
                                <bean 
class="org.jasig.cas.authentication.handler.support.HttpBasedS
erviceCredentialsAuthenticationHandler"
                                        p:httpClient-ref="httpClient" />
<bean
                        
class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
                        <property name="filter" value="sAMAccountName=%u" />
                        <property name="searchBase" 
value="ou=users,dc=domain,dc=com" />
                        <property
                                        name="contextSource"
                                        ref="contextSource" />
                        </bean>

                        <property name="ignorePartialResultException" 
value="yes" />
                </bean>

 <bean id="contextSource"  
class="org.springframework.ldap.core.support.LdapContextSource">
        <property name="pooled" value="true"/>
        <property name="urls">
        <list>
        <value>ldap://serverad.domain.com/</value>
        </list>
        </property>
        <property name="userDn" value="CN=Ldapuser,OU=users,DC=domain,DC=com"/>
        <property name="password" value="password"/>
        <property name="baseEnvironmentProperties">
         <map>
          <entry>
            <key>
              <value>java.naming.security.authentication</value>
            </key>
              <value>simple</value>
          </entry>
         </map>
        </property>
 </bean>

7. start with serveral errors.

8. I am not sure that ldap is in war.


any idea?

thank you.

bye enrico

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