cancel
Showing results for 
Search instead for 
Did you mean: 

Errror:CAS +OPENLDAP Authentication on alfresco-4.0.b

vijith
Champ in-the-making
Champ in-the-making
Hi friends,

I have problem on CAS integration with Alfresco-4.0.b

before that i configured OPEN-LDAP with alfresco-4.0.b ,It's Working fine;and also my CAS Server Authenticating through OPEN-LDAP.

i followed this link http://wiki.alfresco.com/wiki/Central_Authentication_Service_Configuration  after modified web.xml file  ,am getting  error in  browser
    HTTP Status 404 -

    type Status report

    message

    description The requested resource () is not available.
please help me regarding this …

with regards
Vijith
5 REPLIES 5

vijith
Champ in-the-making
Champ in-the-making
finally 404 error gone through modified web.xml file

now am taking alfresco site (http://ip-address:8080/alfresco) it redirects to CAS login (https://192.168.99.135:8443/casuid/login?service=http%3A%2F%2F192.168.99.132%3A8080%2Falfresco%2Ffac...)Page , after that am getting some error with alfresco url

i copied that CAS server certificate file and import to alfresco using keytool command….

    java.lang.RuntimeException: 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
    caused by:
    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
    caused by:
    sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    caused by:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
with regards
Vijith

vijith
Champ in-the-making
Champ in-the-making
Hi friends,

After rectify my previous error i got new error ..

(Previous error occurs due to the SSL Certificate ,actually i import ssl certificate to alfresco system  java certificate path , again i imported that certificate to alfresco java folder (opt/alfresco-4.0.b/java/jre/lib/security/cacerts) like that problem resolved..

After restart that alfresco am getting
    "javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present"
for rectifying this problem i played with cn name while creating Cetificate in CAS Server (i think some problem with cn name)

please share your experience regarding this ..

For checking purpose , now cas server running on 8080 port (No SSL) .Here also some problem whiling login to alfresco

    java.lang.NoSuchMethodError: org.alfresco.web.app.Application.getLanguage(Ljavax/servlet/http/HttpSessionSmiley WinkLjava/util/Locale
As normal i login to alfresco it's asks username,password and language . But through CAS  am providing user name and password , for that it's happening ?

please share your valuable info….

luca
Star Contributor
Star Contributor
Hi,
I'm trying to use CAS to authenticate in Alfresco 4.0d, but I have some problems…  :cry:

Can you help me?
Could you send me a copy of filter classes and the web.xml, please?

Thanks in advance,
Luca

swapraw
Champ in-the-making
Champ in-the-making
Hi Vijith,

Your Cn name should be the domain name of your machine where CAS is running.
Preapare a self certified SSl Certificate with CN = domain name of cas server and then you need to import this certificate into java cacerts of the machine where your alfresco is running.
If you are running your alfresco with ssl enabled then you need to create certificate in the same manner as above and import it to the cacerts of cas machine.
Cn = machine domain name is very imortant. You can check you machine domain name from right click on My computer and cehck computer name, this should be your CN. also a point to note is that your both machine running alfresco and CAS should have same time otherwise it may give you that error again.

Luca : We have integrated CAS/ Alfresco 4.0.d with some modification to some classes but first
post you configuration for files like alfresco-global.properties

luca
Star Contributor
Star Contributor
HI swapRaw,
I have posted them here:
https://forums.alfresco.com/en/viewtopic.php?f=57&t=45399

Could you please help me?