cancel
Showing results for 
Search instead for 
Did you mean: 

CAS configuration in 3.4.d 'Incorrectly configured endpoint'

goldmar
Champ in-the-making
Champ in-the-making
Hello,

I've read pretty much everything I could find about CAS and Alfresco… and I got mod_auth_cas working with Explorer but it does not work with Share. I get the following error when I open https://myserver/share:

 
org.springframework.extensions.surf.exception.PlatformRuntimeException: 05190012 Incorrectly configured endpoint ID: alfresco
   org.alfresco.web.site.servlet.SSOAuthenticationFilter.challengeOrPassThrough(SSOAuthenticationFilter.java:593)
   org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:378)

I could not find anything about this error on the web. These are my settings:
share-config-custom.xml
   <config evaluator="string-compare" condition="Remote">
        <remote>
            <connector>
                <id>alfrescoCookie</id>
                <name>Alfresco Connector</name>
                <description>Connects to an Alfresco instance using cookie-based authentication</description>
                <class>org.alfresco.connector.AlfrescoConnector</class>
            </connector>

            <endpoint>
                <id>alfresco</id>
                <name>Alfresco - user access</name>
                <description>Access to Alfresco Repository WebScripts that require user authentication</description>
                <connector-id>alfrescoCookie</connector-id>
                <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
                <identity>user</identity>
                <external-auth>true</external-auth>
            </endpoint>
        </remote>
   </config>

Tomcat server.xml
    <Connector executor="tomcatThreadPool"
               address="127.0.0.1"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               URIEncoding="UTF-8"
               redirectPort="8443" />

    <Connector executor="tomcatThreadPool"
               address="127.0.0.1" port="8009" protocol="AJP/1.3"
               URIEncoding="UTF-8" tomcatAuthentication="false"
               redirectPort="8443" />

alfresco-global.properties
authentication.chain=external1:external,alfrescoNtlm1:alfrescoNtlm
external.authentication.proxyUserName=
external.authentication.proxyHeader=X-Alfresco-Remote-User
external.authentication.enabled=true
external.authentication.userIdPattern=

Any ideas?
3 REPLIES 3

goldmar
Champ in-the-making
Champ in-the-making
Okay, I've solved this problem! - it was due to me using the wrong class for alfrescoCookie (I've used the 3.2 config as you can see above).

Also, I had some spaces in my alfresco-global.properties at the end of the line, this seems to have made additional problems…

adiaz
Champ in-the-making
Champ in-the-making
Hello Goldmar,

I have the same situation, can you please be more specific about your alfresco-global.properties and your share-config.xml please?…

I'm using CAS Server 3.4.7 and CAS Client 3.1.10 for SSO

Http://localhost:8080/Alfresco works grate!
but Share doesn't.

Regards

adiaz
Champ in-the-making
Champ in-the-making
Hi Goldmar,

I have this error:


17:29:12,828  INFO  [web.site.EditionInterceptor] Unable to retrieve License inf
ormation from Alfresco: 500
17:29:12,863  ERROR [alfresco.web.site] javax.servlet.ServletException: Could no
t resolve view with name 'site-index;jsessionid=EEC8B5BD16CA94DAAEDF91D2ED42DBB5
' in servlet with name 'Spring Surf Dispatcher Servlet'

do you know how to solve it?

Thank you very much.