组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Gilles Galboud
add automaticaly user in organisation after create in ldap
2012年11月15日 上午7:57
答复

Gilles Galboud

等级: New Member

帖子: 1

加入日期: 2012年11月15日

最近的帖子

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
2012年11月15日 上午8:39
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11046

加入日期: 2006年9月1日

最近的帖子

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
2012年11月15日 上午11:57
答复

Jack Bakker

等级: Liferay Master

帖子: 840

加入日期: 2010年1月3日

最近的帖子

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