cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco portlets

unknown-user
Champ on-the-rise
Champ on-the-rise
I have deployed alfresco in liferay. When i try to use my spaces portelt i get the following error:
java.lang.IllegalArgumentException - All user details are mandatory!
  
org.alfresco.web.bean.repository.User.(User.java:70)
org.alfresco.web.scripts.portlet.WebClientPortletAuthenticator.createWebClientUser(WebClientPortletAuthenticator.java:140)
org.alfresco.web.scripts.portlet.WebClientPortletAuthenticator.authenticate(WebClientPortletAuthenticator.java:114)
org.alfresco.web.scripts.portlet.WebScriptPortlet$WebScriptPortalRuntime.authenticate(WebScriptPortlet.java:263)
org.alfresco.web.scripts.WebScriptRuntime.authenticatedExecute(WebScriptRuntime.java:294)
I have taken alfresco from svn one mont ago and i have implemented ldap sso with cas between liferay and alfresco.
Any help would be appreciated
18 REPLIES 18

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

Try this solution.

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

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

CIGNEX_Liferay_43-Alfresco_201-SSO-LDAP.zip

Download from (save link as …)

http://liferay.cignex.com

unzip it in your local machine.

download portal-mysql-43.sql at http://liferay.cignex.com/portal-mysql-43.sql

2. Then create database (this is cofigurable) MySQL

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

input data
mysql -u liferay43dev -pliferay43dev liferay43dev < portal-mysql-43.sql

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

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

unknown-user
Champ on-the-rise
Champ on-the-rise
Yes but i want to use webscript portlet which is only avalaible in alfresco 2.1
thanks

mikeh
Star Contributor
Star Contributor
We have applied some fixes to the authentication code behind the portlets since the 2.1RC1 release to fix these problems with Liferay.

Testing is ongoing, but you are welcome to try the RC2-dev packages from the nightly build server.

Thanks,
Mike

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

The solution is generic. It would be useful for Alfresco Web Script Portlet, Alfresco Web Service portlet, or any other Alfresco-related Portlets (either thick or thin).

Good Luck.

bugg_tb
Champ in-the-making
Champ in-the-making
Hi Jonas,

i've tried your package above but when its installed I have the same problem as when I tried it manually, the content portlet is visible but the client one isn't am i missing something?

Cheers

Tom

jonas
Champ in-the-making
Champ in-the-making
Hi Tom,

I just tested the following one. It works well in my local machine.

——————————————————————————

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

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

CIGNEX_Liferay_43-Tomcat60-Alfresco_21-SSO-LDAP.zip

Download from (save link as …)

http://liferay.cignex.com

unzip it in your local machine. (It should be tomcat60/*)

download portal-mysql-43.sql at http://liferay.cignex.com/portal-mysql-43.sql

Note: It is tomcat 6.0.13, jdk 1.6.* is required.

2. Then create database (this is configurable) MySQL

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

input data
mysql -u liferay43plet -pliferay43plet liferay43plet < portal-mysql-43.sql

for Alfresco Portlet
create database alfresco21plet;
grant all on alfresco21plet.* to 'alfresco21plet'@'localhost' identified by 'alfresco21plet' with grant option;
grant all on alfresco21plet.* to 'alfresco21plet'@'localhost.localdomain' identified by 'alfresco21plet' with grant option;

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

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

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



For the first time you login, you are required to sign on for agreement in Liferay Portal.
Furthermore, just add content "Alfresco Ext 2.1 Client";

using email/password

jonas@liferay.com / jonas
jane@liferay.com / jane

….

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

Add Alfresco Ext 2.1 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 17, 2007

bugg_tb
Champ in-the-making
Champ in-the-making
Cheers for the reply jonas,

At work I'm sat behind a huge firewall so I can't authenticate with your system which doesn't help, but when I've logged on as test on yours and checked the Add Content -> CMS -> Alfresco box there is only ever alfresco content, I have also set up a version myself with alfresco and liferay on the same server but this still ends up with the same effect, Im utterly confused, i know SSO doesn't work but I thought it would at least allow you to see the portlet with a sign on or something.

Cheers

Tom

jonas
Champ in-the-making
Champ in-the-making
Hi Tom,

It should not work well with huge firewall, as well as in your local machine. Since SSO server and LDAP server are all at docs.cignex.com. And Alfresco Portlet also accesses LDAP server (docs.cignex.com) for authentication. If you can not access LDAP server, alfresco portlet may not be initialized in right way, and you should not see it anyway. In order to do so, your firewall should allow you to access this server (with different ports) first.

By the way, I just logged on as jonas/jonas at liferay.cignex.com. It worked well. Portlet "Alfresco Ext Client" appears with "Logout(jonas)".  test/test is no a unique account in LDAP server. It is better to use jonas/jonas, jane/jane, joebloggs/joe, etc for testing for real demo in liferay.cignex.com.

Please let me know if you have any questions or comments.

Good luck!

tobias_amon
Champ in-the-making
Champ in-the-making
I tried your solution with Liferay / Alfresco and SSO.

But your solution is not working for me 😞

When I unzip the complete package (and create database with correct rights) I cannot use the Alfresco Ext Client.

In Liferay Portal (4.3.0 on JBoss 4.0.5) the solution was not to Hot-Deploy the portlet. Just use the plugin installer. But this solution does not work for this package.

I have currently set up Liferay 4.3 with JBoss and CAS for SSO. SSO works fine for Liferay (using tickets). But how can I achieve that Alfresco Portlet authenticates with this ticket too?

Thanks