cancel
Showing results for 
Search instead for 
Did you mean: 

Liferay & Alfresco Content Portlet - BadCredentialsExcep

gratz
Champ in-the-making
Champ in-the-making
Hi everybody

Just working on Liferay & Alfresco and got this exception, while loading a content into the Alfresco Content Portlet via Liferay portal.

I'm authentified as admin in liferay portal (test@liferay.com), and i just want to get alfresco content on the appropriate portlet. I got this exception :

WARN  [AlfrescoContentUtil:330] Could not start session for test@liferay.com test 4103b4fe-02f4-11dc-bf07-15cb0b6e86fc Write
org.alfresco.repo.security.authentication.AuthenticationException: Bad credentials presented

However the content is right in the portlet, so that's quite good… Any idea ?

Thanks a lot
3 REPLIES 3

gratz
Champ in-the-making
Champ in-the-making
I got some answers… by myself 😃

While Alfresco Content Portlet is ON, and while its loading with the page on the liferay portal, it is trying to log in Alfresco, and if we're logged as admin in liferay portal, the user doesn't exist in Alfresco, so there's the exception.

I'm trying to create a user test@liferay.com in Alfresco to see the change.

The only solution is, after browsing many many forums, to put SSO between Liferay and Alfresco, but there's no "approved" solutions for the moment, only kind of.

If some are reading this post  ( :roll: ), can you list current solutions to make SSO with Liferay and Alfresco ?

Regards

Gratz.

choon
Champ in-the-making
Champ in-the-making
Hello Gratz,

both CAS and LDAP work fine.

I think you'll find a couple of entries on that here and a CAS portlet is available on the liferay site.

Kind regards,
Dan

jonas
Champ in-the-making
Champ in-the-making
Hi

A solution of SSO plus LDAP for Liferay Portal and Alfresco Portlet.

1. First please download an example Liferay Portal 4.2.2, Alfresco Portlet 1.4, LDAP (cas) and SSO CAS.

CIGNEX_Liferay-Alfresco-SSO-LDAP.zip

Download from (save link as …)

http://liferay.cignex.com

unzip it in your local machine.

2. Then create database (this is cofigurable) MySQL

for Liferay Portal
create database liferay;
grant all on liferay.* to 'liferay'@'localhost' identified by 'liferay' with grant option;
grant all on liferay.* to 'liferay'@'localhost.localdomain' identified by 'liferay' 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

press sign in

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

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



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
CIGNEX Technologies, Inc.
Email: jonas@cignex.com

July 08, 2007