Forums de discussion
Ldap import user assign role
Smitha Krish, modifié il y a 10 années.
Ldap import user assign role
New Member Publications: 4 Date d'inscription: 19/09/12 Publications récentes
Hi All,
We are importing users from ldap and there is an ldap attribute which tells whether the user is a faculty or not.
The requirement is to show a certain page to faculties only. For this, I wish to assign all faculties a role programmatically after every ldap sync. so that faculties can we this page without waiting for the administrator giving them the role/permission.
I was able to get the ldap attribute(faculty or not) into liferay's user custom field. But I don't how to proceed from here.
Any ideas are appreciated. Also, the liferay version I am using is 6.1
Thanks in advance.
SK
We are importing users from ldap and there is an ldap attribute which tells whether the user is a faculty or not.
The requirement is to show a certain page to faculties only. For this, I wish to assign all faculties a role programmatically after every ldap sync. so that faculties can we this page without waiting for the administrator giving them the role/permission.
I was able to get the ldap attribute(faculty or not) into liferay's user custom field. But I don't how to proceed from here.
Any ideas are appreciated. Also, the liferay version I am using is 6.1
Thanks in advance.
SK
Antoine Comble, modifié il y a 10 années.
RE: Ldap import user assign role
Regular Member Publications: 232 Date d'inscription: 07/09/12 Publications récentes
Hi,
You should override PortalLDAPImporterImpl creating a hook or an ext plugin.
Regards,
Antoine
You should override PortalLDAPImporterImpl creating a hook or an ext plugin.
Regards,
Antoine
Smitha Krish, modifié il y a 10 années.
RE: Ldap import user assign role
New Member Publications: 4 Date d'inscription: 19/09/12 Publications récentes
Thank you Antoine. Will definitely give it a try.