[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How to execute a program after every change in the Directory?



Today at 3:18pm, Pierangelo Masarati wrote:

Bruno Negrão wrote:


I want to execute a script every time my Directory changes, can someone
give me a clue of a good practice for doing this?


I'd like do do something like slurpd does - monitoring the replication log and read the changes from there. What do you think of this strategy?

The replog is periodically erased by slurpd as soon as an entry has been dealt with. You need to ensure you get to every change before slurpd cleans it up.

If one defined a replica server and had slurpd feed a server that took whatever actions you wanted, would that suffice?

I'm thinking of something along that line (using another instance of openldap running back-perl) to realtime update our Active Directory server when changes happen in the authoritative OpenLDAP server.

--
Frank Swasey                    | http://www.uvm.edu/~fcs
Informtn Tech Profssnl Sr       | Always remember: You are UNIQUE,
University of Vermont           |    just like everyone else.
  "I am not young enough to know everything. " - Oscar Wilde (1854-1900)