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

Re: trigger script on change to db



Thanks!
For now I wrote a script that compares the contextCSN of the root object, but I am definitely going to play around with that backend when I get the chance.

All the best,
Eli

2011/11/14 Michael StrÃder <michael@stroeder.com>
Howard Chu wrote:
> Michael StrÃder wrote:
>> E.S. Rosenberg wrote:
>>> I was wondering is it possible to set a slapd syncprov consumer to
>>> trigger a script when it receives changes to the db (updates of
>>> specific attributes).
>>
>> You might want to try something with a synclrepl consumer served by back-sock.
>> But I think getting this right is almost as much work as implementing your own
>> syncrepl client.
>
> That's almost on the right track. Use back-sock as an overlay.

That's what I was thinking first. But I'd be afraid that a
blocking/misbehaving script would lock up slapd. I'd prefer to decouple such
components to be on the safe side.

Ciao, Michael.