Fórum

Add User to a Community during LDAP Import process

Vineel Kumar, modificado 9 Anos atrás.

Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
What are the ways to add a liferay user to a community during the Ldap Import Process.

Can you please point me to any documentation to customize the LDAP import process. We have multiple communities and depending upon a custom field entry for a user in LDAP we want to add users to a specific community in liferay.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
you mention 'community' ; which version of Liferay are you working with ?
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Hi Jack, We are on Liferay 6.0.5 EE SP2
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Vineel Kumar:
We are on Liferay 6.0.5 EE SP2


Really ? Are you living in another dimension ?
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Yeah..... we have upgrade planned for the end of the year so i guess we are struck with this version for now.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Vineel Kumar:
Yeah..... we have upgrade planned for the end of the year so i guess we are struck with this version for now.


I can only guess what you are upgrading to...
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
I recommend:

1) compare your version with those that actually exist ; did you mean v6.0.5 CE ?
2) don't append new out of scope questions according to subject of existing thread

Good luck !
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
I recommend:

1) compare your version with those that actually exist ; did you mean v6.0.5 CE ?
2) don't append new out of scope questions according to subject of existing thread

Good luck !



Sorry for the confusion our version is 6.0 EE not 6.0.5 CE.

So do you have any suggestion/solution for the question within the thread scope?
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
check your end of life (EOL) for your v6.0 EE ; I have moved on to v6.2 to gain responsive and other, tho still have to maintain v6.1, and older v6.0 and v5.2

if you are stuck on v6.0 for reasons beyond your control you might, or something like it:

--
assign usergroup(s) to the community

line up ldap usergroup names with Liferay usergroup names ; I choose a LR_ prefix so my ldap group import filter is easier to manage

creating corresponding roles with usergroups has many advantages
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
check your end of life (EOL) for your v6.0 EE ; I have moved on to v6.2 to gain responsive and other, tho still have to maintain v6.1, and older v6.0 and v5.2

if you are stuck on v6.0 for reasons beyond your control you might, or something like it:

--
assign usergroup(s) to the community

line up ldap usergroup names with Liferay usergroup names ; I choose a LR_ prefix so my ldap group import filter is easier to manage

creating corresponding roles with usergroups has many advantages


This is exactly what we have on my LDAP setup (Importing by users, created roles and mapped the user groups to the roles which are imported from LDAP), users are imported, user groups are imported with appropriate members in the groups but i cant seem to figure out why the imported users from LDAP and not getting a community membership. I am not able to see what is the exact API call which is made during the import process for the user entry to be added as a member of a community.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
did you assign the liferay usergroup to the community in liferay ?

control panel : portal : communities : *community name* : "User Groups" (tab) and then associate from available ?
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
did you assign the liferay usergroup to the community in liferay ?

control panel : portal : communities : *community name* : "User Groups" (tab) and then associate from available ?



I have all the user groups associated to the community but still the Current Users for the community comes up as "No Users were found" as shown in the screenshot.

When i click the link "Available" under the users section i can see all the users imported but none of them received the community membership.

Is there something i am missing in portal-ext.properties?
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
To clarify: you have associated usergroups but you haven't associated any individual users ? so your "User Groups" tab shows 'current' records, but your 'Users' tabs doesn't ?
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
To clarify: you have associated usergroups but you haven't associated any individual users ? so your "User Groups" tab shows 'current' records, but your 'Users' tabs doesn't ?


Yes, that is correct.

I have associate the User groups, doesn't it mean the users belonging (member of) to these groups also are associate with this community?
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
user is associated via usergroup, not directly

test to see...

(we are talking v6.0 views here ; views in v6.2 are different/better)
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
user is associated via usergroup, not directly

test to see...


here this is what i did
Control panel > Communities > User Groups > Available > selected all the user groups and clicked Update Associations.

So the users associated in this user groups are associated with the community right?

Please find the attached screenshots of my ldap users, groups mapping.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
do you have EE subscription license ?
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
do you have EE subscription license ?



Yes.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Are users importing from LDAP with your current configuration ?
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
Are users importing from LDAP with your current configuration ?



Yes i can see all the users are listed
Control Panel > users
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
If users are importing from LDAP then I will have to assume your LDAP config is ok (I won't ask details on which LDAP you use)

Given you have a valid subscription license and thus would have access to a Customer Portal to get support from Liferay, I suggest you pick up your concerns in a ticket. You might reference this thread, and also whether you are importing by group or user.

Good luck Vineel !
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
If users are importing from LDAP then I will have to assume your LDAP config is ok (I won't ask details on which LDAP you use)

Given you have a valid subscription license and thus would have access to a Customer Portal to get support from Liferay, I suggest you pick up your concerns in a ticket. You might reference this thread, and also whether you are importing by group or user.

Good luck Vineel !



Thanks Jack.
Vineel Kumar, modificado 9 Anos atrás.

RE: Add User to a Community during LDAP Import process

Junior Member Postagens: 35 Data de Entrada: 01/10/13 Postagens Recentes
Jack Bakker:
If users are importing from LDAP then I will have to assume your LDAP config is ok (I won't ask details on which LDAP you use)

Given you have a valid subscription license and thus would have access to a Customer Portal to get support from Liferay, I suggest you pick up your concerns in a ticket. You might reference this thread, and also whether you are importing by group or user.

Good luck Vineel !


Hi Jack,

I found the problem, the jsp page edit_user.jsp make a call to GroupLocalSeviceUtil.getUserGroups(long userId, boolean inherit) with inherit flag as "false" so it just returns the user communities with direct membership, it does not return the inherited communities (Node sure why, this probably should have been like a portal.properties setting which could have been easily customized ).

I have also opened a ticket with liferay support and waiting on it.