In liferay you can define listeners for an entity. They work like triggers and necessary code will be called based on what action is performed on the entity (update , create etc).In these three steps you can understand how LDAP is synched with Liferay DB.