I'm in the process of trying to get Community Edition 3.2r to talk with my university's CAS server. So far I have followed the wiki page instructions for external authentication and can now log into the Alfresco explorer using SSO however Share gives me the following error below. I'm wondering if my shared/classes/alfresco/web-extension/webscript-framework-config-custom.xml is configured properly and being read or if there is an issue with my SSL certificates. Any thoughts as to what might be the problem? Thanks in advance!Tomcat Error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.alfresco.web.site.exception.RequestContextException: Exception running UserFactory in HttpRequestContextFactory
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:146)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
org.alfresco.web.site.exception.RequestContextException: Exception running UserFactory in HttpRequestContextFactory
org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:117)
org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
org.alfresco.web.site.exception.UserFactoryException: Unable to retrieve user from repository
org.alfresco.web.site.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:252)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:176)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:110)
org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:93)
org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.json.JSONException: A JSONObject text must begin with '{' at character 1 of <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>…..</html>
org.json.JSONTokener.syntaxError(Unknown Source)
org.json.JSONObject.<init>(Unknown Source)
org.json.JSONObject.<init>(Unknown Source)
org.alfresco.web.site.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:165)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:176)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:110)
org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:93)
org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
webscript-framework-config-custom.xml:<alfresco-config>
<!– Overriding endpoints to reference a remote Alfresco server –>
<!–
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>alfresco-noauth</id>
<name>Alfresco - unauthenticated access</name>
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://yourserver:8080/alfresco/s</endpoint-url>
<identity>none</identity>
</endpoint>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://yourserver:8080/alfresco/s</endpoint-url>
<identity>user</identity>
</endpoint>
<endpoint>
<id>alfresco-feed</id>
<name>Alfresco Feed</name>
<description>Alfresco Feed - supports basic HTTP authentication</description>
<connector-id>http</connector-id>
<endpoint-url>http://yourserver:8080/alfresco/s</endpoint-url>
<basic-auth>true</basic-auth>
<identity>user</identity>
</endpoint>
</remote>
</config>
–>
<!– Overriding endpoints to reference an Alfresco server with external SSO or NTLM enabled –>
<!– NOTE: For NTLM, the NTLM Authentication Filter must also be enabled in share web.xml –>
<!– NOTE: if utilising a load balancer between web-tier and repository cluster, the "sticky –>
<!– sessions" feature of your load balancer must be used –>
<config evaluator="string-compare" condition="Remote" replace="true">
<remote>
<!– SSL client certificate + trusted CAs. Optionally used to authenticate share to an external SSO system such as CAS –>
<keystore>
<path>/opt/Alfresco/tomcat/shared/classes/alfresco/web-extension/alfresco-system.p12</path>
<type>pkcs12</type>
<password>alfresco</password>
</keystore>
<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://<hostname removed>/alfresco/wcs</endpoint-url>
<identity>user</identity>
<external-auth>true</external-auth>
</endpoint>
</remote>
</config>
</alfresco-config>