cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Alfresco 2.0 and Liferay 4.3.4 Upgrade

schoony99
Champ in-the-making
Champ in-the-making
Hello, I am trying to upgrade our Liferay 4.2.2 installation to 4.3.4.  We use Alfresco 2.0 and CAS for single sign-on.  We use a fedora ldap server for authentication. 

My problem is as follows:  The upgrade seems to somehow break the connection between Alfresco and Liferay as far as user accounts go. For instance, I login to Liferay with user 'xyz', but Alfresco thinks I am user '123' (non-existant and always numerical) so my Alfresco spaces, content, etc. is missing for user xyz. The logout button, which used to say "Logout xyz" now says "Logout 123".  All the while Liferay is displaying the correct username and info.

My Alfresco log shows no errors, nor does my LDAP server log show any attempt for user '123'.  I do not understand where or why Alfresco is getting these bogus user accounts.  Anyone have any ideas?  If you need any more info from me, please ask!  Thanks!
6 REPLIES 6

schoony99
Champ in-the-making
Champ in-the-making
Below is a response I got on the Liferay forum.  Does this ring any bells with anyone?  If it does, could someone tell me how to do this?

"Well, in version 4.3 Liferay changed userId to integer id. The old id is now called screeName. You probably need to update the ids in Alfresco to numeric ones."

smyers
Champ in-the-making
Champ in-the-making
It depends on how you have everything set up. If you're getting liferay's userIds in Alfresco, then it sounds like Alfresco might not be using CAS as its authentication source, otherwise I'm not sure how this could have broken in the way you describe.

I can provide some more detail on your problem, though. Before 4.3, Liferay stored its userIds as string usernames, usually autogenerated at user creation, such that a new user would either get the ID of ${company_Id}.$userIDnumber (i.e. the first user of an unconfigured liferay would be liferay.com.1), or an arbitrary sting you defined, like 'bob'. Coming into 4.3, liferay ended its dependence on the company_id value set in the web.xml, and moved to interger-only userIDs, and moved the string representaiton of a username into the 'screenName' ('screeName'?) field.

Based on your description, liferay is passing this userID value to Alfresco, which would have worked fine before Liferay 4.3. You need to find where this is happening and either tell liferay to pass the new field, or alfresco to request it, depending on your config.

schoony99
Champ in-the-making
Champ in-the-making
Thank you for the response SMyers. I don't suppose you would happen to have any idea where to look for this?  I am not a programmer nor especially familiar with the files that make Alfresco tick, so any explanation may need to be "dumbed down" for me. Any help you can offer is greatly appreciated.  Thanks again!

jonathanscorner
Champ in-the-making
Champ in-the-making
Hello, I am trying to upgrade our Liferay 4.2.2 installation to 4.3.4.  We use Alfresco 2.0 and CAS for single sign-on.

Do you have a HOWTO to get Liferay 4.2.2 working with Alfresco 2.0 with CAS for SSO?

schoony99
Champ in-the-making
Champ in-the-making
Do you have a HOWTO to get Liferay 4.2.2 working with Alfresco 2.0 with CAS for SSO?

No, sorry.  We had to work with Alfresco directly to get it working properly.  Our support ran up last month so they are unwilling to help us with this migration.

jonathanscorner
Champ in-the-making
Champ in-the-making
Do you have a HOWTO to get Liferay 4.2.2 working with Alfresco 2.0 with CAS for SSO?

No, sorry.  We had to work with Alfresco directly to get it working properly.  Our support ran up last month so they are unwilling to help us with this migration.

Ouch.