AnsweredAssumed Answered

SSO and LDAP for Liferay 5.0.1 and Alfresco 2.2 - RESTFul

Question asked by jonas on Apr 23, 2008
A solution of SSO plus LDAP for Liferay Portal 5.0.1 and Alfresco Portlet 2.2.0 with full RESTFul Integration.

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

1. First please download an example Liferay Portal 5.0.1, Alfresco Portlet 2.2.0, LDAP (ADS) and SSO CAS.

liferay-portal-tomcat-6.0-5.0.1.zip

Download from (save link as …)

http://liferay.cignex.com

unzip it in your local machine.

2. Then create database (this is configurable) MySQL

for Liferay Portal 5.0.1
create database liferay50;
grant all on liferay50.* to 'liferay50'@'localhost' identified by 'liferay50' with grant option;
grant all on liferay50.* to 'liferay50'@'localhost.localdomain' identified by 'liferay50' with grant option;

for Alfresco Portlet
create database alfresco;
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;

3. Start your AS from unzipped file
tomcat/bin/startup.bat or sh startup.sh

Go to http://localhost:8080/c/portal/login

press sign in

You may need to configure LDAP:
ldap://docs.cignex.com:10389
ou=users,ou=system
uid=admin,ou=system

and configure SSO
https://docs.cignex.com/cas-web/login
https://docs.cignex.com/cas-web/logout
https://docs.cignex.com/cas-web/proxyValidate

4. In CAS login page (https://docs.cignex.com/cas-web), login

possible users in LDAP server (docs.cignex.com) (configurable)
jonas/jonas



After login in CAS, you should be in Liferay Portal with your login name. No need relogin in Liferay Portal.

Add Alfresco Ext Client. You should be in Alfresco Portlet with your login name. No need relogin in Alfresco Portlet.

Get it?

Good luck.

Jonas Yuan

Outcomes