OFBiz - CAS Not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

OFBiz - CAS Not working

vignesh sabapathi
Hi

I am trying to configure OFBiz with (CAS + LDAP) setup. I deployed CAS in tomcat and configured with LDAP. both are working fine. However i set the settings for OFBiz and got the following error.
when i type <a href="https://hostname:port/ecommerce">https://hostname:port/ecommerce . it is taking me to CAS page with secured connectionn <a href="https://tomcat_hostname:port/cas/">https://tomcat_hostname:port/cas/ . after entering credentials it is redirecting me back to ecommerce page with error.

javax.servlet.ServletException: org.jasig.cas.client.validation.TicketValidationException: The CAS server returned no response.
        org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:155)
        org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
        org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:99)

and my console gives me the root cause of the error as

10-08-27 15:54:12,610 (http-0.0.0.0-8443-1) [AbstractCasProtocolUrlBasedTicketValidator.java:49 :ERROR] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


I searched in forum. And find some hint. But that doesnt work.

My doubt is , is this project linked to jsse.properties file for getting truststore and keystore files. But i found 2 JKS file linked to are missing in OFBiz. Is this the cause.?. wat are the changes to be made to ofbiz-container.properties file. ?
Please help me in resolving and proceed further setup



Reply | Threaded
Open this post in threaded view
|

Re: OFBiz - CAS Not working

BJ Freeman
my guess is that the cas is not redirecting to HTTP which ecommerce
operates under.


=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
vignesh sabapathi sent the following on 8/27/2010 3:32 AM:


>
> Hi
>
> I am trying to configure OFBiz with (CAS + LDAP) setup. I deployed CAS in
> tomcat and configured with LDAP. both are working fine. However i set the
> settings for OFBiz and got the following error.
> when i type <a href="https://hostname:port/ecommerce">https://hostname:port/ecommerce . it is taking me to CAS page
> with secured connectionn <a href="https://tomcat_hostname:port/cas/">https://tomcat_hostname:port/cas/ . after entering
> credentials it is redirecting me back to ecommerce page with error.
>
> javax.servlet.ServletException:
> org.jasig.cas.client.validation.TicketValidationException: The CAS server
> returned no response.
>
> org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:155)
>
> org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
>
> org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:99)
>
> and my console gives me the root cause of the error as
>
> 10-08-27 15:54:12,610 (http-0.0.0.0-8443-1)
> [AbstractCasProtocolUrlBasedTicketValidator.java:49 :ERROR]
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>
>
> I searched in forum. And find some hint. But that doesnt work.
>
> My doubt is , is this project linked to jsse.properties file for getting
> truststore and keystore files. But i found 2 JKS file linked to are missing
> in OFBiz. Is this the cause.?. wat are the changes to be made to
> ofbiz-container.properties file. ?
> Please help me in resolving and proceed further setup
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: OFBiz - CAS Not working

Jacques Le Roux
Administrator
+1 (also just a quick guess)

Jacques

From: "BJ Freeman" <[hidden email]>

> my guess is that the cas is not redirecting to HTTP which ecommerce
> operates under.
>
>
> =========================
> BJ Freeman  <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> vignesh sabapathi sent the following on 8/27/2010 3:32 AM:
>
>
>>
>> Hi
>>
>> I am trying to configure OFBiz with (CAS + LDAP) setup. I deployed CAS in
>> tomcat and configured with LDAP. both are working fine. However i set the
>> settings for OFBiz and got the following error.
>> when i type <a href="https://hostname:port/ecommerce">https://hostname:port/ecommerce . it is taking me to CAS page
>> with secured connectionn <a href="https://tomcat_hostname:port/cas/">https://tomcat_hostname:port/cas/ . after entering
>> credentials it is redirecting me back to ecommerce page with error.
>>
>> javax.servlet.ServletException:
>> org.jasig.cas.client.validation.TicketValidationException: The CAS server
>> returned no response.
>>
>> org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:155)
>>
>> org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
>>
>> org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:99)
>>
>> and my console gives me the root cause of the error as
>>
>> 10-08-27 15:54:12,610 (http-0.0.0.0-8443-1)
>> [AbstractCasProtocolUrlBasedTicketValidator.java:49 :ERROR]
>> javax.net.ssl.SSLHandshakeException:
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
>> valid certification path to requested target
>> javax.net.ssl.SSLHandshakeException:
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
>> valid certification path to requested target
>>
>>
>> I searched in forum. And find some hint. But that doesnt work.
>>
>> My doubt is , is this project linked to jsse.properties file for getting
>> truststore and keystore files. But i found 2 JKS file linked to are missing
>> in OFBiz. Is this the cause.?. wat are the changes to be made to
>> ofbiz-container.properties file. ?
>> Please help me in resolving and proceed further setup
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: OFBiz - CAS Not working

Shi Jinghai
In reply to this post by BJ Freeman
If it's a developer environment, to make it simple, you can config CAS
not using SSL by editing
${cas_home}/WEB-INF/spring-configuration/warnCookieGenerator.xml,
changing
p:cookieSecure="true"
to
p:cookieSecure="false"

I'll try to find time to upgrade the implement later and add support to
OpenID and SAML by CAS proxy.

Regards,

Shi Jinghai/Beijing Langhua Ltd.

在 2010-08-27五的 07:03 -0700,BJ Freeman写道:

> my guess is that the cas is not redirecting to HTTP which ecommerce
> operates under.
>
>
> =========================
> BJ Freeman  <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> vignesh sabapathi sent the following on 8/27/2010 3:32 AM:
>
>
> >
> > Hi
> >
> > I am trying to configure OFBiz with (CAS + LDAP) setup. I deployed CAS in
> > tomcat and configured with LDAP. both are working fine. However i set the
> > settings for OFBiz and got the following error.
> > when i type <a href="https://hostname:port/ecommerce">https://hostname:port/ecommerce . it is taking me to CAS page
> > with secured connectionn <a href="https://tomcat_hostname:port/cas/">https://tomcat_hostname:port/cas/ . after entering
> > credentials it is redirecting me back to ecommerce page with error.
> >
> > javax.servlet.ServletException:
> > org.jasig.cas.client.validation.TicketValidationException: The CAS server
> > returned no response.
> >
> > org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:155)
> >
> > org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
> >
> > org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:99)
> >
> > and my console gives me the root cause of the error as
> >
> > 10-08-27 15:54:12,610 (http-0.0.0.0-8443-1)
> > [AbstractCasProtocolUrlBasedTicketValidator.java:49 :ERROR]
> > javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException: PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> > valid certification path to requested target
> > javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException: PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> > valid certification path to requested target
> >
> >
> > I searched in forum. And find some hint. But that doesnt work.
> >
> > My doubt is , is this project linked to jsse.properties file for getting
> > truststore and keystore files. But i found 2 JKS file linked to are missing
> > in OFBiz. Is this the cause.?. wat are the changes to be made to
> > ofbiz-container.properties file. ?
> > Please help me in resolving and proceed further setup
> >
> >
> >
> >

Reply | Threaded
Open this post in threaded view
|

Re: OFBiz - CAS Not working

sachinmanjule
In reply to this post by vignesh sabapathi
I could not found ofbiz webapp folder of tomcat and where I should put cas-server.war file? please help me