cancel
Showing results for 
Search instead for 
Did you mean: 

CAS strangeness

alarocca
Champ in-the-making
Champ in-the-making
Hi,

my CAS is up and running (Liferay successfully authenticates). Unfortunately, I was not able to have same result with Alfresco 1.4. Actually, the redirection  to the CAS login page works and the authentication too. Once authenticated, I'm redirected to Alfresco that redirect again to the CAS login page. Any hint?

This is the fileter configuration in my web.xml:

<filter>
      <filter-name>Authentication Filter</filter-name>
   <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
   <init-param>
      <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
      <param-value>http://myserver:8080/cas/login</param-value>
   </init-param>
   <init-param>
      <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
      <param-value>https://myserver:8443/cas/serviceValidate</param-value>
   </init-param>
   <init-param>
      <param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
      <param-value>http://myserver:8080/alfresco</param-value>
   </init-param>     
   </filter>

   <filter>
      <filter-name>WebDAV Authentication Filter</filter-name>
      <filter-class>org.alfresco.repo.webdav.auth.AuthenticationFilter</filter-class>     
   </filter>
  
   <filter>
      <filter-name>Admin Authentication Filter</filter-name>
      <filter-class>org.alfresco.web.app.servlet.AdminAuthenticationFilter</filter-class>
   </filter>

   <filter-mapping>
      <filter-name>Authentication Filter</filter-name>
      <url-pattern>/faces/*</url-pattern>
   </filter-mapping>
     
   <filter-mapping>
      <filter-name>WebDAV Authentication Filter</filter-name>
      <url-pattern>/webdav/*</url-pattern>
   </filter-mapping>
  
   <filter-mapping>
      <filter-name>Admin Authentication Filter</filter-name>
      <url-pattern>/faces/jsp/admin/*</url-pattern>
   </filter-mapping>
  
   <filter-mapping>
      <filter-name>Admin Authentication Filter</filter-name>
      <url-pattern>/faces/jsp/categories/*</url-pattern>
   </filter-mapping>
  
   <filter-mapping>
      <filter-name>Admin Authentication Filter</filter-name>
      <url-pattern>/faces/jsp/groups/*</url-pattern>
   </filter-mapping>
  
   <filter-mapping>
      <filter-name>Admin Authentication Filter</filter-name>
      <url-pattern>/faces/jsp/users/delete-user.jsp</url-pattern>
   </filter-mapping>
  
   <filter-mapping>
      <filter-name>Admin Authentication Filter</filter-name>
      <url-pattern>/faces/jsp/users/users.jsp</url-pattern>
   </filter-mapping>
  
   <filter-mapping>
      <filter-name>Admin Authentication Filter</filter-name>
      <url-pattern>/faces/jsp/dialog/system-info.jsp</url-pattern>
   </filter-mapping>

The following is the cas log confirming that authetication succeded:

2007-01-26 08:07:26,095 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - AuthenticationHandler: org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler successfully authenticated the user which provided the following credentials: alarocca
2007-01-26 08:07:26,105 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - Granted service ticket [ST-2-u56BfZzEOceMTgVFTLGOlbp6XjHoYVd0smv-20] for service [http://myserver:8080/alfresco] for user [alarocca]
 

Best regards, Alessandro
2 REPLIES 2

sebastien_marin
Champ in-the-making
Champ in-the-making
Hi, i've done the same conf in the web.xml of the alfresco webapp. So i put the casclient.jar in the web-inf/lib but when i display the alfresco portlet, i have the Alfresco Login page and not the CAS login page.


The CAS filter if ok for Liferay, but not for Alfresco.


How didi you do to do this ?


Thank you very much.

tegyat
Champ in-the-making
Champ in-the-making
I have the same problem, can you help me to resolve it
thanks