Hye,
I'm new to CAS and I try to make it work in our school.
Everything's work fine in demo version.
So I make changes in deployerConfigContext.xml and pom.xml to authenticate with
our Active Directory.
When I build my project I got the message BUILD SUCCESS.
Then I copy cas.war in /var/lib/tomcat6/webapps and reload tomcat deamon.
My issue is when I try to reconnect with my browser, I get 404 error :
---------------------
HTTP Status 404 -
type Status report
message description The requested resource () is not available.
---------------------
So, I put back original files, build again and everything's back to normal
(demo).
I guess it's something wrong in my conf but I 've been searching 3 days for
nothing. If someone s' got a clue, I 'll be thankful.
The modifications I made :
In cas-server-3.4.11/cas-server-webapp/pom.xml I declare ldap dependency :
--------------------
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cas-server-support-ldap</artifactId>
<version>${project.version}</version>
</dependency>
---------------------
In
cas-server-3.4.11/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext
I add bean adaptatorLdap and ldap context.
---------------------
<property name="authenticationHandlers">
<list>
<bean
class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
p:httpClient-ref="httpClient" />
<bean
class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler"
p:filter="sAMAccountName=%u"
p:searchBase="cn=cas-user,dc=bordeaux,dc=archi,dc=fr"
p:contextSource-ref="contextSource"
p:ignorePartialResultException="true"
/>
</list>
</property>
<bean id="auditTrailManager"
class="com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager" >
<bean id="contextSource"
class="org.springframework.ldap.core.support.LdapContextSource">
<property name="pooled" value="false"/>
<property name="url" value="ldap://192.168.190.5:389"
/>
<property name="userDn"
value="cn=cas-user,cn=Users,dc=bordeaux,dc=archi,dc=fr"/>
<property name="password" value="P@ssword"/>
<property name="baseEnvironmentProperties">
<map>
<entry
key="com.sun.jndi.ldap.connect.timeout" value="3000" />
<entry key="com.sun.jndi.ldap.read.timeout"
value="3000" />
<entry
key="java.naming.security.authentication" value="simple" />
</map>
</property>
</bean>
</bean>
---------------------
Here's the documentation I've been follow for AD authentication =>
http://www.artduweb.com/tutoriels/cas-sso
My conf :
Centos 6 x86 VM Ware
CAS 3.4.11
Apache-maven 3.0.4
Tomcat 6
Open JDK 1.6
Thanks for any idea and good evening.
__________________________________________
Guillaume DEPINAY
Service Informatique
ENSAP Bordeaux
740 cours de la Libération
BP 70109 - 33405 Talence cedex
Tel : 33 (0) 5.57.35.11.43
Mel : [email protected]
Web : http://www.bordeaux.archi.fr
___________________________________________
--
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