« Development (Legacy) に戻る

Integrating Liferay, Alfresco, SSO and LDAP

Alternative Languages: 日本語

Integration of Alfresco (Web Client), SSO and LDAP #

In ten steps, you could be able to integrate Alfresco with SSO and LDAP. It is simple for Do-It-Yourselfers.

Download URL: http://liferay.cignex.com/palm_tree/0387/sso/alfresco (Alfresco 3.1 E or above, SSO CAS 3.3 or above)

Demo URL: http://liferay.cignex.com

1) Get Alfresco web client application: alfresco.war

2) Unzip it to $ALFRESCO_HOME (any folder in your local machine, e.g., new folder /Alfresco)

3) Copy sso-ldap-authentication-context.xml to $ALFRESCO_HOME/WEB-INF/classes.

And copy ldap-authentication.properties and ldap-authentication-context.xml to $ALFRESCO_HOME/WEB-INF/classes/alfresco/extension

Note that you can configure LDAP other than ldap://docs.cignex.com:10389 4) Copy bookpub-sso-ldap.jar to $ALFRESCO_HOME/WEB-INF/lib

5) Add following lines before the first <filter> in $ALFRESCO_HOME/WEB-INF/web.xml

<filter><filter-name>CAS Filter</filter-name> <filter-class>com.bookpub.portal.servlet.filters.sso.cas.CASFilter</filter-class> <init-param> <param-name>cas_server_url</param-name> <param-value>[[http://docs.cignex.com/cas-web</param-value>|http://docs.cignex.com/cas-web</param-value>]] </init-param><init-param> <param-name>service_path</param-name> <param-value>/index.jsp</param-value></init-param> <init-param> <param-name>application_type</param-name> <param-value>Alfresco</param-value></init-param> </filter>

Note that the SSO CAS should be installed with ports 80 and 443.

Add following lines after the last </filter> in $ALFRESCO_HOME/WEB-INF/web.xml

<filter-mapping> <filter-name>CAS Filter</filter-name> <url-pattern>/index.jsp</url-pattern> </filter-mapping> <filter-mapping> <filter-name>CAS Filter</filter-name> <url-pattern>/logout</url-pattern> </filter-mapping>

And add following line after the line <import resource="classpath:alfresco/web-services-application-context.xml" /> in $ALFRESCO_HOME/WEB-INF/web-application-context.xml.

 <import resource="classpath:sso-ldap-authentication-context.xml" />

6) Add following lines after the first --%> in $ALFRESCO_HOME /jsp/parts/titlebar.jsp

 <%String protocol = request.getProtocol(); protocol = protocol.substring( 0 , protocol.indexOf("/")).toLowerCase(); String address = request.getServerName(); String port = request.getServerPort() + ""; String path = request.getContextPath();if(port.endsWith("443")) protocol += "s"; String currentURL = protocol + "://" + address + ":" + port + path + "/logout"; %>
And replace the line
<a:actionLink id="logout" image="/images/icons/logout.gif" value="#{msg.logout} (#{NavigationBean.currentUser.userName})" rendered="#{!NavigationBean.isGuest}" action="#{LoginBean.logout}" immediate="true" /> 

With the line

<a:actionLink id="logout" image="/images/icons/logout.gif" value="#{msg.logout} (#{NavigationBean.currentUser.userName})" rendered="#{!NavigationBean.isGuest}" action="#{LoginBean.logout}" showLink="false" target="_parent" href="<%= currentURL %>" immediate="true" /> <a href="<%= currentURL %>" target="_parent"><h:outputText value="#{msg.logout} (#{NavigationBean.currentUser.userName})" /></a>

7) Update dir.root in $ALFRESCO_HOME/ WEB-INF/classes/alfresco/repository.propertes. dir.root=../../alf_data

8) Copy mysql.jar to $ALFRESCO_HOME/WEB-INF/lib and Create a database alfresco in MySQL

drop database if exists alfresco;create database alfresco character set utf8; grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' with grant option; grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by 'alfresco' with grant option; 
9) Package all files as a WAR: alfresco.war;

10) Deploy it to $TOMCAT_DIR/webapps

Or, you can use the result directly: download WAR from http://liferay.cignex.com/palm_tree/0387/sso/alfresco/alfresco.war and deploy it in $TOMCAT_DIR/webapps.

Note that JAR is compliant with JDK 1.6 (1.6.0_14). This package has been tested in Tomcat (6.0.20) with following settings in setenv.bat (or setenv.sh). It is working fine!

JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx1024m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Dcom.iplanet.am.cookie.c66Encode=true"

Integration of Alfresco (Share), SSO and LDAP #

In five steps, you could be able to integrate Alfresco Share with SSO and LDAP. It is simple for Do-It-Yourselfers.

Download URL: http://liferay.cignex.com/palm_tree/0387/sso/alfresco (Alfresco 3.1 E or above, SSO CAS 3.3 or above)

Demo URL: http://liferay.cignex.com

(Would be ready shortly ...)

Integration of Liferay, SSO and LDAP #

In five steps, you could integrate Liferay with SSO and LDAP. It is simple for Do-It-Yourselfers.

Download URL: http://liferay.cignex.com/palm_tree/0387/sso/liferay (Liferay 5.2 or above, SSO CAS 3.3 or above)

Demo URL: http://liferay.cignex.com

1) Download and Install cas-web.war

Prepare Tomcat server $TOMCAT_HOME, and open port 8443 (for 8080; 443 for 80).

in case (tomcat 6.0.18 or above, CAS 3.2 or below), change the code in $TOMCAT_HOME/webapps/cas-web/WEB-INF/view/jsp/default/ui/casLoginView.jspcasLoingView.jsp from:

<c:set var="query" value="<%=request.getQueryString() == null ? "" : request.getQueryString().replaceAll( "&locale=([A-Za-z][A-Za-z]_)?[A-Za-z][A-Za-z]|^locale=([A-Za-z][A-Za-z]_)?[A-Za-z][A-Za-z]", "")%>" />

to:

<c:set var="query" value='<%=request.getQueryString() == null ? "" : request.getQueryString().replaceAll( "&locale=([A-Za-z][A-Za-z]_)?[A-Za-z][A-Za-z]|^locale=([A-Za-z][A-Za-z]_)?[A-Za-z][A-Za-z]", "")%>' />

Prepare certificate in Tomcat Server

Drop cas-web.war to $TOMCAT_HOME/webapps

Update LDAP URL (CAS 3.3 or above) in $TOMCAT_HOME/webapps/cas-web/WEB-INF/deployerConfigContext.xml

<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
	<property name="pooled" value="true"/>
	<property name="urls">
		<list>
			<value>ldap://docs.cignex.com:10389/</value>
		</list>
	</property>
	<property name="userDn" value="uid=admin,ou=system"/>
	<property name="password" value="yourpassword"/>
	<property name="baseEnvironmentProperties">
		<map>
			<entry>
				<key>
					<value>java.naming.security.authentication</value>
				</key>
				<value>simple</value>
			</entry>
		</map>
	</property>
	</bean>

Note that you can update LDAP other than ldap://docs.cignex.com:10389. And more, the SSO CAS server should be installed with ports 80 and 443. 2) Get Liferay Tomcat bundle and Install Liferay, you will have folder $TOMCAT_AS_DIR

3) Copy casclient.jar to $TOMCAT_AS_DIR /webapps/ROOT/WEB-INF/lib (replace old version)

4) Set up LDAP in Liferay (for LDAP test only )Authenticated by screen name Search filter: (cn=@screen_name@)

For Apache Directory, you can do following. For Active Directory, refer to http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Integration+with+NTLM+plus+ADS

5) Set up CAS SSO in LiferayUse virtual domain

Note that you would get message like ” This Connection is Un-trusted. You have asked Firefox to connect securely to docs.cignex.com, but we can't confirm that your connection is secure. Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified.” You should get or install certificate. In case, you should install SSL certificate in your own CAS server.

Remove CAS SSO settings in case #

To remove CAS SSO (including other SSO like openSSO) settings, in case:

  • shutdown the portal
  • Run script: delete from PortletPreferences where portletId = 'LIFERAY_PORTAL';
  • re-start the portal

Integration of Liferay and Alfresco portlets #

In ten steps, you could be able to set alfresco web client as a set of portlets. It is simple for Do-It-Yourselfers.

Download URL: http://liferay.cignex.com/palm_tree/0387/sso/liferay/alfresco-portlet (Liferay 5.2 or above, Alfresco 3.1 or above)

Demo URL: http://liferay.cignex.com

1) Get Alfresco web client application: alfresco.war

2) Unzip it to $ALFRESCO_HOME (any folder in your local machine, e.g., new folder /Alfresco)

3) Update dir.root in $ALFRESCO_HOME/ WEB-INF/classes/alfresco/repository.propertes.

dir.root=../../alf_data

4) Create a database alfresco in MySQL

 drop database if exists alfresco; create database alfresco character set utf8; grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' with grant option; grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by 'alfresco' with grant option; 

5) Remove the file $ALFRESCO_HOME/WEB-INF/lib/portlet-api-lib.jar

6) Add /WEB-INF/faces-config.xml to the faces config files list at $ALFRESCO_HOME/WEB-INF/web.xml like:

<context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml,/WEB-INF/faces-config-app.xml,/WEB-INF/faces-config-beans.xml, /WEB-INF/faces-config-navigation.xml,/WEB-INF/faces-config-common.xml, /WEB-INF/faces-config-repo.xml,/WEB-INF/faces-config-wcm.xml,/WEB-INF/faces-config-custom.xml</param-value> </context-param>

7) Add files: faces-config.xml, liferay-display.xml, liferay-portlet.xml, portlet.xml to $ALFRESCO_HOME/WEB-INF

8) Create a folder license under $ALFRESCO_HOME /WEB-INF/classes/alfresco/extension and add license file to $ALFRESCO_HOME /WEB-INF/classes/alfresco/extension/ license

9) Package all files as a WAR: alfresco.war;

10) Deploy it in $LIFERAY_HOME/deploy

Or, you can use the result WAR directly: download WAR from http://liferay.cignex.com/palm_tree/0387/sso/liferay/alfresco-portlet/alfresco.war and deploy it to $LIFERAY_HOME/deploy. That’s it.

Note that you may not be able to add alfresco portlets in liferay pages properly, since alfresco portlets requires to be signed in first. Simple Solution - you can create an account “admin/admin” (default account in alfresco) in liferay, and assign this account to role “Administrator”. Then login as “admin/admin” in liferay, and add alfresco portlets in liferay portal pages, again.

Integration of Liferay, Alfresco, SSO and LDAP #

In ten steps, you could be able to integrate Liferay with Alfresco, SSO and LDAP. It is simple for Do-It-Yourselfers, too.

Download URL: http://liferay.cignex.com/palm_tree/0387/sso/liferay

Demo URL: http://liferay.cignex.com

It is available in the book: Liferay Portal 6 Enterprise Intranets

0 添付ファイル
98279 参照数
平均 (1 投票)
平均評価は5.0星中の5です。
コメント
コメント 作成者 日時
hi, I am using liferay with a oracle 10g... Pablo M Mino 2009/08/27 16:42
Tested with CAS3.2, same issue:-( Anyone can... John J 2009/11/25 4:30
Hummm, this was a stupid issue. Looks like the... John J 2009/11/25 17:54
Thank you, John. You are right, current... Jonas Yuan 2009/11/26 7:27
CAS server 3.3.5 and cas-client 3.1.9 are... Jonas Yuan 2009/12/15 5:33
I'm running Liferay + Alfresco portlet on Mac... Will Wu 2010/01/12 11:23
hi, I got Liferay working with CAS SSO and... Pablo M Mino 2010/01/27 7:52
Hello! I followed the steps and are able to... Jens Stahl 2010/03/25 7:17
hi, I downloaded... Ashraf ahmadi 2010/04/21 1:15
I wonder if this works with Alfresco 3.3?... Ace Man 2010/07/15 2:00
I followed the steps for Integration of... ankit yakkundi 2010/08/18 3:53

hi, I am using liferay with a oracle 10g database which means I can only have 1 database named XE

I was wondering if there is a way to tell alfresco to use that same database ?

and also, which are the 10 steps for the "Integration of Liferay, Alfresco, SSO and LDAP"?
投稿日時:09/08/27 16:42
Tested with CAS3.2, same issue:-(

Anyone can help?


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList= [edu.yale.its.tp.cas.client.ServiceTicketValidator casValidateUrl=[https://localhost:18009/cas-web/proxyValidate] ticket=[ST-1-bpKAQ4HRqzcvBbegNQI9-cas] service=[http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin] renew=false]]]
edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.jav­a:381)
com.liferay.portal.servlet.filters.sso.cas.CASFilter.processFilter(CASFilt­er.java:141)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.jav­a:92)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:­165)
com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilte­r.java:192)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java­:92)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:1­65)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilte­r(VirtualHostFilter.java:189)
com.liferay.portal.kernel.servlet.BaseFilter.doFilt­er(BaseFilter.java:92)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter­(BaseFilter.java:165)
com.liferay.portal.servlet.filters.threadlocalcache.ThreadL­ocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:52)
com.liferay.portal.­kernel.servlet.BaseFilter.doFilter(BaseFilter.java:92)
com.liferay.portal.kernel.­servlet.BaseFilter.processFilter(BaseFilter.java:165)
com.liferay.portal.kernel.s­ervlet.BaseFilter.doFilter(BaseFilter.java:95)
org.tuckey.web.filters.urlrewrite.­UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)


root cause

edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList= [edu.yale.its.tp.cas.client.ServiceTicketValidator casValidateUrl=[https://localhost:18009/cas-web/proxyValidate] ticket=[ST-1-bpKAQ4HRqzcvBbegNQI9-cas] service=[http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin] renew=false]]]
edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:5­8)
edu.yale.its.tp.cas.client.filter.CASFilter.getAuthenticatedUser(CASFilter.jav­a:455)
edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:378)
co­m.liferay.portal.servlet.filters.sso.cas.CASFilter.processFilter(CASFilter.java:­141)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:92)
com­.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:165)
com.­liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:1­92)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:92)
com.­liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:165)
com.l­iferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(Virtua­lHostFilter.java:189)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseF­ilter.java:92)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFil­ter.java:165)
com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCach­eFilter.processFilter(ThreadLocalCacheFilter.java:52)
com.liferay.portal.kernel.s­ervlet.BaseFilter.doFilter(BaseFilter.java:92)
com.liferay.portal.kernel.servlet.­BaseFilter.processFilter(BaseFilter.java:165)
com.liferay.portal.kernel.servlet.B­aseFilter.doFilter(BaseFilter.java:95)
org.tuckey.web.filters.urlrewrite.UrlRewri­teFilter.doFilter(UrlRewriteFilter.java:738)


root cause

java.net.SocketException: Unexpected end of file from server
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)
sun.net.ww­w.http.HttpClient.parseHTTP(HttpClient.java:632)
sun.net.www.http.HttpClient.pars­eHTTPHeader(HttpClient.java:766)
sun.net.www.http.HttpClient.parseHTTP(HttpClient­.java:632)
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConn­ection.java:1049)
edu.yale.its.tp.cas.util.SecureURL.retrieve(SecureURL.java:86)
e­du.yale.its.tp.cas.client.ServiceTicketValidator.validate(ServiceTicketValidator­.java:212)
edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:56)
ed­u.yale.its.tp.cas.client.filter.CASFilter.getAuthenticatedUser(CASFilter.java:45­5)
edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:378)
com.li­feray.portal.servlet.filters.sso.cas.CASFilter.processFilter(CASFilter.java:141)­
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:92)
com.lif­eray.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:165)
com.life­ray.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:192)
c­om.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:92)
com.life­ray.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:165)
com.lifer­ay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHos­tFilter.java:189)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilte­r.java:92)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.­java:165)
com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFil­ter.processFilter(ThreadLocalCacheFilter.java:52)
com.liferay.portal.kernel.servl­et.BaseFilter.doFilter(BaseFilter.java:92)
com.liferay.portal.kernel.servlet.Base­Filter.processFilter(BaseFilter.java:165)
com.liferay.portal.kernel.servlet.BaseF­ilter.doFilter(BaseFilter.java:95)
org.tuckey.web.filters.urlrewrite.UrlRewriteFi­lter.doFilter(UrlRewriteFilter.java:738)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
Pablo M Minoへのコメント。投稿日時:09/11/25 4:30
Hummm, this was a stupid issue. Looks like the casclient.jar under liferay WEB-INF\lib folder which provided by Jonas Yuan is corrupted.

I downloaded a new casclient (v2.0) from official site, and it went through...
John Jへのコメント。投稿日時:09/11/25 17:54
Thank you, John. You are right, current casclient was old version. It is time to upgrade it last version. cas-client 3.1.9 would be better.

With current updated casclient.jar, you should avoid to use “localhost”. The updated casclient.jar is working well for real domain name like liferay.cignex.com or virtual domain name. For example, real demo at http://liferay.cignex.com.
John Jへのコメント。投稿日時:09/11/26 7:27
CAS server 3.3.5 and cas-client 3.1.9 are working well on Liferay 5.3 ....
Jonas Yuanへのコメント。投稿日時:09/12/15 5:33
I'm running Liferay + Alfresco portlet on Mac OSX.
I downloaded the alfresco.war (from cignex) and put in the deploy folder in the liferay + tomcat bundle, and I also downloaded liferay + alfresco (from cignex). Both case I get the same error.

Jan 12, 2010 6:42:51 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jan 12, 2010 6:42:51 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 12, 2010 6:42:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1108 ms
Jan 12, 2010 6:42:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 12, 2010 6:42:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jan 12, 2010 6:47:37 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Jan 12, 2010 6:51:27 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 12, 2010 6:51:28 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jan 12, 2010 6:51:51 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 12, 2010 6:51:51 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 12, 2010 6:51:51 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/108 config=null
Jan 12, 2010 6:51:51 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 540435 ms
Jan 12, 2010 6:59:09 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jan 12, 2010 6:59:11 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jan 12, 2010 6:59:17 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jonas Yuanへのコメント。投稿日時:10/01/12 11:23
hi, I got Liferay working with CAS SSO and Alfresco too, simply adding the filter in both web.xml and placing the cas client lib on the right folder, correct?

However, when deploying Alfresco as portlets, I placed on that filter this

<!-- CAS client filter -->
<filter>
<filter-name>CAS Filter</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://pmino:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://pmino:8443/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>pmino:8080</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Filter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<!-- end of CAS client filter -->
<filter>
<filter-name>Authentication Filter</filter-name>
<filter-class>com.keembay.alfresco.web.app.servlet.CASAuthenticationFilter</f­ilter-class>
<init-param>
<param-name>cas.user.label</param-name>
<param-value>edu.yale.its.tp.cas.client.filter.user</param-value>
</init-param>
</filter>

which technically is the same filter information for Liferay, but this doesn't work, I can log using SSO to Liferay but Alfresco acts like it doesn't exist

I know this will be on your next book, but looks like only you got the recipe to correctly configure alfresco as a portlet with the same SSO Liferay use (as in your demo), what else am i missing to make it work?
投稿日時:10/01/27 7:52
Hello!

I followed the steps and are able to add the "Alfresco Client Portlet"

But when I try to access content (download a document for example, I get the following exception:

java.lang.NullPointerException
org.alfresco.web.bean.users.UserPrefere­ncesBean.getContentFilterLanguage(UserPreferencesBean.java:122)
org.alfresco.web­.app.servlet.AuthenticationHelper.setupThread(AuthenticationHelper.java:132)
org­.alfresco.web.app.servlet.AuthenticationHelper.authenticate(AuthenticationHelper­.java:257)
org.alfresco.web.app.servlet.AuthenticationHelper.authenticate(Authen­ticationHelper.java:160)
org.alfresco.web.app.servlet.BaseServlet.servletAuthent­icate(BaseServlet.java:156)
org.alfresco.web.app.servlet.BaseServlet.servletAuth­enticate(BaseServlet.java:126)
org.alfresco.web.app.servlet.DownloadContentServl­et.doGet(DownloadContentServlet.java:100)
javax.servlet.http.HttpServlet.service­(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:7­17)
org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:74)
s­un.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav­a:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm­pl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.alfresco.repo.m­anagement.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemPro­xyFactory.java:122)
org.springframework.aop.framework.ReflectiveMethodInvocation­.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.­JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
$Proxy188.doFilter(Unknow­n Source)
org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFil­ter.java:88)

Any idea what could be the problem? Thanks!

Jens
Pablo M Minoへのコメント。投稿日時:10/03/25 7:17
hi, I downloaded liferay-portal-tomcat-6.0-5.0.1 from this site: http://liferay.cignex.com/(It has alfreso,cas-web portlets itself)
I can't connect to Ldap:ldap://docs.cignex.com:10389,so I run openDs i my system and run a local server then i could not connect to cas locality so my cas-web portlet has defualt config,I want to run alfreso portlet too,please help me.thanks
投稿日時:10/04/21 1:15
I wonder if this works with Alfresco 3.3? Anyone got it running?
Ashraf ahmadiへのコメント。投稿日時:10/07/15 2:00
I followed the steps for Integration of Alfresco (Web Client), SSO and LDAP
Although there are no errors in tomcat till i put the log-out code, i want to test the login. How to test it? Basically what should happen after i follow these steps?

What i am able to do is, when i login with http://localhost/alfresco, it opens the CAS login window. I log into cas with admin/admin, then i am directed to the alfresco web client login page, where i have to login again.

I believe this is not the expected result..

Any suggestion would be of great help..!!

Thanks in Advance..!!!
投稿日時:10/08/18 3:53