We have a portal hosted at our side on Liferay and a Active Directory is in sync through LDAP with Liferay. The problem which we are facing is that when the user gets deleted from the AD it neither gets deactivated nor deleted from Liferay. I want the user to be deactivated not deleted from Liferay when deleted from the AD.
Although Liferay strongly discourages to deactivate/delete the user when the user is deleted from the AD as there may be dependencies on other user, sites or organisations or unexpected behavior which may be caused.
I checked all the required fields which are necessary for AD synchronization with Liferay. I am unable to upload the screenshot due to less reputation.
How can I achieve the aforementioned requirement?
Please suggest the possible ways.
Thank you
In order to customize such default behavior of Liferay, you need to create a plugin ext by extending PortalLDAPImporterImpl.java.
The following link will help you - http://www.liferay.com/community/forums/-/message_boards/message/10755176