Fórum

Did CAS in liferay 5.2.3 worked for any one ???

vijay V, modificado 14 Anos atrás.

Did CAS in liferay 5.2.3 worked for any one ???

New Member Postagens: 5 Data de Entrada: 10/08/09 Postagens Recentes
Hi Guys,

Does CAS in liferay 5.2.3 works. Iam struggling to get it work. I configured cas with LDAP and provided the cas configuration details in liferay under Settings-->Authentication--->CAS tab. My problem is after successfull authentication iam redirecting to an empty page with an exception. Please refer the exception below :



at java.lang.Thread.run(Thread.java:595)
Caused by: edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to vali
date ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator prox
yList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator casValidateUrl=[
https://localhost:8443/cas-web/proxyValidate] ticket=[ST-1-pGgCCekFcle7eBbHi2yg-
cas] service=[http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin] renew=false]]]

        at edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:58)
        at edu.yale.its.tp.cas.client.filter.CASFilter.getAuthenticatedUser(CASF
ilter.java:455)
        at edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:3
78)
        ... 36 more
Caused by: java.net.SocketException: Unexpected end of file from server
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:763)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:626)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:760)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:626)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:957)
        at edu.yale.its.tp.cas.util.SecureURL.retrieve(SecureURL.java:86)
        at edu.yale.its.tp.cas.client.ServiceTicketValidator.validate(ServiceTic
ketValidator.java:212)
        at edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:56)
        ... 38 more



Thanks,
Vijay
thumbnail
Jonas Yuan, modificado 14 Anos atrás.

RE: Did CAS in liferay 5.2.3 worked for any one ???

Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
vijay V, modificado 14 Anos atrás.

RE: Did CAS in liferay 5.2.3 worked for any one ???

New Member Postagens: 5 Data de Entrada: 10/08/09 Postagens Recentes
Hi,

I followed the instructions given in that article, but still iam getting the error. After successfull authentication iam redirecting to

http://localhost:8080/c/portal/login?ticket=ST-2-zd4lPGsBQ2CO7oSpaWjZ-cas with blank page



Thanks,
Vijay
thumbnail
Jonas Yuan, modificado 14 Anos atrás.

RE: Did CAS in liferay 5.2.3 worked for any one ???

Liferay Master Postagens: 993 Data de Entrada: 27/04/07 Postagens Recentes
Hi Vijay,

Please do the following and post your testing results;

1) use default LDAP and SSO CAS, integrating them in your localhost (Liefray portal);
2) use your own LDAP and default SSO CAS, integrating them in your localhost (Liefray portal);
3) use your own LDAP and your own SSO CAS, integrating them in your localhost (Liefray portal);

Thus we could narrow down the issue you met.

Thanks

Jonas Yuan

----------------
Liferay Books

Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Priit Liivak, modificado 13 Anos atrás.

RE: Did CAS in liferay 5.2.3 worked for any one ???

New Member Postagens: 13 Data de Entrada: 16/06/10 Postagens Recentes
The issue is that Liferay 5.2.3 uses CAS client that uses default SSLConnectionFactory thus is only capable of accepting certificates that are in JRE trustore.

To use more advanced installation (for example Weblogic with custom trust and keystores) Cas client needs to be modified. Unfortunately even the latest CAS Java Client 3.1.12 does not use commons httpclient that would allow simple configuration of SSLSocketFactory.

I will update this post if I get any results.