Hi all,

I'm trying to use CAS 3.1.1 with Ldap and Liferay 4.3.4 but it doesn't work
.
After redirection to the CAS-login page, typing the login and Pwd the clic
on the button "se connecter" doesn't redirect to  the Liferay page

I'm adding :
spring-ldap-1.1.2.jar
cas-server-ldap-3.0.5.jar
ldaptemplate-1.0.2.jar
on the lib folder of the cas server

this is my deployerContext.xml

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:p="http://www.springframework.org/schema/p";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

    <bean id="authenticationManager"
        class="org.jasig.cas.authentication.AuthenticationManagerImpl">

        <property name="credentialsToPrincipalResolvers">
            <list>

                <bean
                    class="
org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver"
/>

                <bean
                    class="
org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver"
/>
            </list>
        </property>


        <property name="authenticationHandlers">
            <list>

                <bean class="
org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler
"
                    p:httpClient-ref="httpClient" />

<!-- ajout pour configurer CAS -->
                <bean class="
org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >
                                      <property name="filter"
value="uid=%u,ou=people,dc=teggodev,dc=net" />
                                      <property name="contextSource"
ref="contextSource" />
                                </bean>
              <!--      <bean     class="
org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler"
/> -->
            </list>
        </property>
    </bean>

        <bean id="contextSource" class="
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
                               <!--  <property name="anonymousReadOnly"
value="true" />  -->
                                 <property name="pooled" value="true" />
                                 <property name="urls">
                                           <list>
                                                  <value>ldap://@IP/</value>

                                                  <value>ldap://@IP
:389/</value>
                                           </list>
                                 </property>
                                 <property name="baseEnvironmentProperties">
                                           <map>
                                                <entry>
                                                        <key>
                                                               <value>
java.naming.security.authentication</value>
                                                        </key>

<value>simple</value>
                                                </entry>
                                           </map>
                                 </property>
        </bean>


    <bean id="userDetailsService" class="
org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
        <property name="userMap">
            <value>
            </value>
        </property>
    </bean>


    <bean id="attributeRepository"
        class="org.jasig.services.persondir.support.StubPersonAttributeDao">
        <property name="backingMap">
            <map>
                <entry key="uid" value="uid" />
        <!--        <entry key="eduPersonAffiliation"
value="eduPersonAffiliation" />
                <entry key="groupMembership" value="groupMembership" />
-->
            </map>
        </property>
    </bean>

    <bean
        id="serviceRegistryDao"
        class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl" />
</beans>


I'm very sorry for my bad english


Thanks for any insight


TeggoLam
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to