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

Re: Trigerring an action after an ldapadd or modify

Quanah Gibson-Mount wrote:
--On Monday, November 03, 2008 3:07 PM +0100 daniel rahmeh
<daniel.rahmeh@gmail.com>  wrote:


is it possible with openldap to trigger an action (like a shell
script) after a succesfull ldapadd or ldapmodify operation. I was
looking for an overlay that does the job but i didn't find it.  any
help will be appreciated.

Just use the accesslog overlay, and configure it to log to a back-perl instance. (You could use back-shell too I suppose, but that's not really a good idea.) back-sock would also be a safe choice.

You could use a perl script based off of Net::LDAPapi as a delta-syncrepl
client listening to an accesslog DB.

That's a few moving parts more than necessary...

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/