留言板

Delete users from Liferay when deleted in LDAP

Michael Voss,修改在7 年前。

Delete users from Liferay when deleted in LDAP

New Member 帖子: 17 加入日期: 16-12-8 最近的帖子
Hi all,
i am trying to mange some users inside a Liferay 6.2 Portal with LDAP.

While most users have to create an Account the normal way, i want to manage some with LDAP (I want to manage all the Admins of our Company with LDAP, to give them Access to all servers)

Now there are some Problems, one of the biggest is, that Liferay makes a copy of the user once he logged in. If i delete the User in LDAP after his first Login, he still can log in to Liferay. I tried:

ldap.import.user.password.enabled=false (But on the first Login, Liferay wants him to change his password, because i have the standard Password policy in use for the rest of the users)

i am not sure if:
ldap.auth.method=password-compare

will help me. I tried it, but i didnt do the job.

I am sure i am just missing a simple point somewhere.

thanks in Advance
Michael
thumbnail
David H Nebinger,修改在7 年前。

RE: Delete users from Liferay when deleted in LDAP

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
If you change LDAP auth to required, that should disable the Liferay login once the LDAP account has been disabled.

The bigger fix, deleting users when they are deleted in LDAP, that's not implemented by Liferay. When I've seen this implemented, usually it requires building an LDAP listener that gets LDAP change events and, in turn, will trigger user deletes using the Liferay API. It's not really Liferay specific code that is the issue, it's very much dependent on your LDAP server and what it supports in this respect.
Michael Voss,修改在7 年前。

RE: Delete users from Liferay when deleted in LDAP

New Member 帖子: 17 加入日期: 16-12-8 最近的帖子
Thanks for the Answer,
I will look if that listener could work with my LDAP Server.

Another question: If i check LDAP authentication required, will other users that are not in LDAP, but in the Liferay Database, still be able to log in?
thumbnail
David H Nebinger,修改在7 年前。

RE: Delete users from Liferay when deleted in LDAP

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
No. If LDAP auth is required, then it is required.
Michael Voss,修改在7 年前。

RE: Delete users from Liferay when deleted in LDAP

New Member 帖子: 17 加入日期: 16-12-8 最近的帖子
Thanks for the help and the fast Answers.

And have a nice Weekend.