Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
CAS Integration
18741, modificat fa 19 anys.
New Member
Apunts: 14
Data d'incorporació: 20/12/05
Publicacions recents
I have installed the CAS server and connected it to LDAP. All works fine.<br /><br />I am now integrating Liferay with CAS. I get so far, that when I press login on the first page I get red-directed to the CAS login page. So far so good....... when the login succeeds in CAS it returns to the following url :http://localhost:8080/web/guest/home even if I login with liferay.com.1 which is the admin for Liferay<br /><br />Below is my web.xml setup .... whats wrong with it ? <br />Do you guys use the serviceUrl or the serverName tag ?<br />What about the portal.properties file setup ?<br /> CASAutoLogon and authpiplen settings <br /><br />Thanks<br />Chris<br /><br />______________________________________________________<br /><filter><br /> <filter-name>CAS Filter</filter-name><br /> <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class><br /> <init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name><br /> <param-value>https://localhost:8443/cas/login</param-value><br /><br /> </init-param><br /> <init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name><br /> <param-value>https://localhost:8443/cas/serviceValidate</param-value><br /> </init-param><br /> <!--init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name><br /> <param-value>localhost:8080</param-value><br /> </init-param--><br /> <init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name><br /> <param-value>http://localhost:8080/c/portal</param-value><br /> </init-param><br /> </filter><br /> <br /> <filter-mapping><br /><filter-name>CAS Filter</filter-name><br /><url-pattern>/c/portal/login</url-pattern><br /></filter-mapping><br />_______________________________________________________
24766, modificat fa 19 anys.
New Member
Apunts: 2
Data d'incorporació: 21/07/06
Publicacions recents
yeah,add <br />auto.login.hooks=com.liferay.portal.security.auth.BasicAutoLogin,com.liferay.portal.security.auth.CASAutoLogin<br />in portal-ext.properties can solve.<br />
<br />I have installed the CAS server and connected it to LDAP. All works fine.<br /><br />I am now integrating Liferay with CAS. I get so far, that when I press login on the first page I get red-directed to the CAS login page. So far so good....... when the login succeeds in CAS it returns to the following url :http://localhost:8080/web/guest/home even if I login with liferay.com.1 which is the admin for Liferay<br /><br />Below is my web.xml setup .... whats wrong with it ? <br />Do you guys use the serviceUrl or the serverName tag ?<br />What about the portal.properties file setup ?<br /> CASAutoLogon and authpiplen settings <br /><br />Thanks<br />Chris<br /><br />______________________________________________________<br /><filter><br /> <filter-name>CAS Filter</filter-name><br /> <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class><br /> <init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name><br /> <param-value>https://localhost:8443/cas/login</param-value><br /><br /> </init-param><br /> <init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name><br /> <param-value>https://localhost:8443/cas/serviceValidate</param-value><br /> </init-param><br /> <!--init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name><br /> <param-value>localhost:8080</param-value><br /> </init-param--><br /> <init-param><br /> <param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name><br /> <param-value>http://localhost:8080/c/portal</param-value><br /> </init-param><br /> </filter><br /> <br /> <filter-mapping><br /><filter-name>CAS Filter</filter-name><br /><url-pattern>/c/portal/login</url-pattern><br /></filter-mapping><br />_______________________________________________________<br /><br />
Community
Company
Feedback