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 />&lt;filter&gt;<br /> &lt;filter-name&gt;CAS Filter&lt;/filter-name&gt;<br /> &lt;filter-class&gt;edu.yale.its.tp.cas.client.filter.CASFilter&lt;/filter-class&gt;<br /> &lt;init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.loginUrl&lt;/param-name&gt;<br /> &lt;param-value&gt;https://localhost:8443/cas/login&lt;/param-value&gt;<br /><br /> &lt;/init-param&gt;<br /> &lt;init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.validateUrl&lt;/param-name&gt;<br /> &lt;param-value&gt;https://localhost:8443/cas/serviceValidate&lt;/param-value&gt;<br /> &lt;/init-param&gt;<br /> &#60;&#33;--init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.serverName&lt;/param-name&gt;<br /> &lt;param-value&gt;localhost:8080&lt;/param-value&gt;<br /> &lt;/init-param--&#62;<br /> &lt;init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.serviceUrl&lt;/param-name&gt;<br /> &lt;param-value&gt;http://localhost:8080/c/portal&lt;/param-value&gt;<br /> &lt;/init-param&gt;<br /> &lt;/filter&gt;<br /> <br /> &lt;filter-mapping&gt;<br />&lt;filter-name&gt;CAS Filter&lt;/filter-name&gt;<br />&lt;url-pattern&gt;/c/portal/login&lt;/url-pattern&gt;<br />&lt;/filter-mapping&gt;<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 />&lt;filter&gt;<br /> &lt;filter-name&gt;CAS Filter&lt;/filter-name&gt;<br /> &lt;filter-class&gt;edu.yale.its.tp.cas.client.filter.CASFilter&lt;/filter-class&gt;<br /> &lt;init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.loginUrl&lt;/param-name&gt;<br /> &lt;param-value&gt;https://localhost:8443/cas/login&lt;/param-value&gt;<br /><br /> &lt;/init-param&gt;<br /> &lt;init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.validateUrl&lt;/param-name&gt;<br /> &lt;param-value&gt;https://localhost:8443/cas/serviceValidate&lt;/param-value&gt;<br /> &lt;/init-param&gt;<br /> &#60;&#33;--init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.serverName&lt;/param-name&gt;<br /> &lt;param-value&gt;localhost:8080&lt;/param-value&gt;<br /> &lt;/init-param--&#62;<br /> &lt;init-param&gt;<br /> &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.serviceUrl&lt;/param-name&gt;<br /> &lt;param-value&gt;http://localhost:8080/c/portal&lt;/param-value&gt;<br /> &lt;/init-param&gt;<br /> &lt;/filter&gt;<br /> <br /> &lt;filter-mapping&gt;<br />&lt;filter-name&gt;CAS Filter&lt;/filter-name&gt;<br />&lt;url-pattern&gt;/c/portal/login&lt;/url-pattern&gt;<br />&lt;/filter-mapping&gt;<br />_______________________________________________________<br />
<br />