Hi Elbassiti ,
Can you provide any log information? the cas.log file is very useful, and also
the logs/catalina.out from liferay.
I am a very poor J2EE programmer and all this stuff is new to me, but so far I
made it work to a certain point.
Here is a copy of my contextSource been. the difference is that u r not
defining the username and psw for the admin.
Also, I notice you ar on port 389 and liferay uses 10389 as default.
Cheers
<bean id="contextSource"
class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
<property name="urls">
<list>
<value>ldap://hostname:10389</value>
</list>
</property>
<property name="userName"
value="uid=admin,cn=administrators,ou=groups,ou=system" />
<property name="password" value="******"/>
<property name="baseEnvironmentProperties">
<map>
<entry>
<key>
<value>java.naming.security.authentication</value>
</key>
<value>simple</value>
</entry>
</map>
</property>
</bean>
----- Mensaje original ----
De: Elbassiti Lamyaa <[EMAIL PROTECTED]>
Para: [email protected]
Enviado: miércoles, 19 de diciembre, 2007 13:08:53
Asunto: Problem: Setting up CAS 3.1.1 with Ldap and Liferay 4.3.4
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
______________________________________________
¿Chef por primera vez?
Sé un mejor Cocinillas.
http://es.answers.yahoo.com/info/welcome_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas