cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.2 and Liferay 5.3 observations and help

pmminov
Champ in-the-making
Champ in-the-making
Hi everyone,

I wanted to write this post about my findings to help anyone who knows as little as me of Alfresco and Liferay and also asking for help in a few things that I can not make work

I started installing Alfresco from the community full installer, mainly to know how it works, then I deployed Alfresco war along with Liferay for doing SSO and running just 1 server in the future, all that was needed was to tell the repository.properties file to point to the same alf_data folder from the full installer otherwise it won't start saying theres an error related with indexes

Doing this I can use Alfresco inside and outside of Liferay whenever I want

1.- However, when i use the Alfresco inside tomcat the console says that ImageMagick and pdf2swf couldn't be found causing on alfresco the i icon next files and spaces not to work as meant to. I assume those don't come with the alfresco.war, how I include them?

Something else to be considered is that (maybe it was the Liferay checkout I used) the Alfresco css are the last on the list of css files… that in css terms means that what is writen on those files is the final design to be applied, so as soon as the portlet was dropped the whole page absorbed things like font and body, erasing the css folder in Alfresco solved this and made Alfresco look like 1 of my portlets

2.- What was next was SSO, that was when I found an article saying that since it is a JSR-186 portlet it share the same user that is logged in Liferay as long as in both of them exist accounts with the same name and pw like bob/bob but THAT IS NOT WORKING, what I have to do to make it work or I have to use an external solution like CAS?

3.- Finally in both of them CIFS doesn't work, i was reading the documentation and it mention something about subsystems, but I couldn't understand if Alfresco includes a CIFS server or the capability to be one, meaning I need a CIFS server or client. The idea of making CIFS work is that portlets like Wiki or the message boards could attach things right into CIFS

Oh, and theres a bug in mozilla that adds 2 // more to the url, so clicking makes nothing, but in IE it works (well, it says the path couldn't be found in my case)

I have found topics of this subjects mentioned everywhere, most without a solution but that should be worth writting a manual with an standard way to proceed

Hope someone liked this post and hope I get some help on my 3 problems, thanks
12 REPLIES 12

pmminov
Champ in-the-making
Champ in-the-making
Installation of CAS is simple, just drop the .war in webapps folder

Information on how to setup CAS and Liferay can be found here: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Single+SignOn+-+Integrating+Liferay+With...

Follow that link step by step and it will work, will tell you to modify some apache file to open port 8443 and generating a certificat, do that and stop at the end of the certificate part, the rest of things like modifying the web.xml are for older versions

Starting LR 5.2 you can set those parameters from the web.xml through protal-ext.properties, i wrote this

cas.auth.enabled=true
cas.import.from.ldap=false
cas.login.url=https://yourserver:8443/cas-web/login
cas.logout.url=https://yourserver:8443/cas-web/logout
cas.server.name=yourserver:8080
cas.server.url=https://yourserver:8443/cas-web
cas.service.url=
#cas.service.url=[http://yourserver:8080/c/portal/login]
cas.validate.url=https://yourserver:8443/cas-web/proxyValidate

For Alfresco the instructions are here: http://wiki.alfresco.com/wiki/Central_Authentication_Service_Configuration, do exactly what it says there, summarizing you only have to dload 2 .jar files and place them on the alfresco WEB-INF/lib file, and you have to modify that web.xml file adding the CAS filter and modifying the Authentication filter

Starting from there both things work with one login, you can log first on LR and then open Alfresco or backwards, the iFrame just go to configuration and write Alfresco URL, like http://yourserver:8080/Alfresco

It is important to mention that you have to create users both on alfresco and liferay with the same screename and tell Liferay to authenticate users by screen name on control panel->settings->authentication on how to authenticate users

murphyshyamala
Champ in-the-making
Champ in-the-making
Hi,

I have used the same steps to set up my CAS last time but they did work as expected when I click the signin it was showing some page not found error.

but i will try the setup once again as you have suggested and see if that works.

yaa bout crceating the users in both alfresco and liferay seams to be one of the major problems, I was also trying to see if we can use any webscripts to create the users simultaneously in both liferay and alfresco.

thank you once again.

dward
Champ on-the-rise
Champ on-the-rise
FYI the share.war from Enterprise v3.2r will drop straight into Liferay and it has a demo portlet.xml showing webscripts running as portlets. This is no consolation for community users but look out for this in a future community release.