Is it possible to receive object content change events from an LDAP server? Basically, I'm searching for a solution to integrate light weight directory services with our software via JNDI to setup active directory synchronization. (i.e. I'd like for the consumer application to be notified when a new entry is made or an object state has changed)
Below are a few possibilities I've came up with so far:
- Enable auditing policy on directory objects and register a listener to read incoming changes from the change log.
- Implement persistent search against the directory.
- Mechanism to poll the directory for changes.
Could someone with more intimate knowledge of LDAP care recommending an optimal approach to a novice person like me?
Thanks in advance!
javax.naming.event.NamingListenerand friends, that's all you need. - user207421