Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Gilles Galboud
add automaticaly user in organisation after create in ldap
15 de Novembro de 2012 07:57
Resposta

Gilles Galboud

Ranking: New Member

Mensagens: 1

Data de entrada: 15 de Novembro de 2012

Mensagens recentes

hey,

At first, i use ldap as authentification system.
i'd like to know how can i do to assign the users in my default organisation AUTOMATICALY ? emoticon


thanks
David H Nebinger
RE: add automaticaly user in organisation after create in ldap
15 de Novembro de 2012 08:39
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 11795

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

I think you may be able to do this via some portlal-ext.properties settings.

If you wanted to do it programmatically, I'd use a model listener on the User object. In your listener you can test post-add if they're in the organization and add them if they're not.
Jack Bakker
RE: add automaticaly user in organisation after create in ldap
15 de Novembro de 2012 11:57
Resposta

Jack Bakker

Ranking: Liferay Master

Mensagens: 883

Data de entrada: 3 de Janeiro de 2010

Mensagens recentes

1) which version of Liferay ?

2) which LDAP ?

3) given users get sync'd in ; I would look at: on the ldap side putting them in an ldap group and on the liferay side: associate the group with the organization

putting LDAP in control of user/group associations has many advantages

I use in LDAP groups with prefix LR_ and then mod the group import filter to only look at LR_* groups, where I also config to create role per group