Problem: Setting up CAS 3.1.1 with Ldap and Liferay 4.3.4
Alatalo Antoni
antoni.alatalo at wmdata.fi
Wed Dec 19 08:36:35 EST 2007
Hi,
there are missing userName and password attributes from
AuthenticatedLdapContextSource
Please check that you have next things in portal-ext.properties
#CAS things
cas.auth.enabled=true
cas.import.from.ldap=true OR FALSE
cas.login.url=https://localhost:8443/cas-web/login
cas.logout.url=https://localhost:8443/cas-web/logout
cas.service.url=http://localhost:8080/c/portal/login
cas.validate.url=https://localhost:8443/cas-web/proxyValidate
The localhost works only on you computer. The better way is to use whole
computer name.
Terv.
Antoni
________________________________
From: cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu]
On Behalf Of Elbassiti Lamyaa
Sent: 19. joulukuuta 2007 14:09
To: cas at tp.its.yale.edu
Subject: 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>
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.UsernamePasswordCredential
sToPrincipalResolver" />
<bean
class="
org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrin
cipalResolver" />
</list>
</property>
<property name="authenticationHandlers">
<list>
<bean
class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCred
entialsAuthenticationHandler"
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.SimpleTestUsernamePasswordA
uthenticationHandler" /> -->
</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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20071219/eea37529/attachment-0001.html
More information about the cas
mailing list