Foros de discusión

Check ldap group in login

Roberto Fernandez Montero, modificado hace 11 años.

Check ldap group in login

New Member Mensajes: 21 Fecha de incorporación: 12/12/12 Mensajes recientes
Hi, actually i have a liferay connect to a ldap for the login action, with this parameterer; (&(uid=@screen_name@) (memberof=cn=usersr,ou=groups,o=users.com))

Only can loggin useers that they are be useru ldap group, now i nedd to allow login to all the users, bt if the user dont be in the useru ldap group, i need to redirect to other site.
I cant import the users and groups Consequently i need to do a login hook with a postaction,I know how can i do the redirecct. But i dont know how can i obtain what is the name of the ldap group that users owner by.
I see the code of PortalLDAPImporterImpl and i try to do something like this, but always receibe a classnotfoundexception with de ldaputls in portal.secutiry.ldap package.

Any idea please? Thanks.

Sorry for my english, i use the google traductor.
Thanks