Re: how to run script on event (modify/delete/add)?

2018-07-31 Thread Michael Ströder
On 07/31/2018 02:12 PM, Zeus Panchenko wrote: Michael Ströder wrote: On 07/30/2018 02:32 PM, Zeus Panchenko wrote: Basically you have two options: 1. run something within slapd (back-perl or back-sock) I'm still missing something ... what is/are the condition/s to see a candidate object to sy

Re: how to run script on event (modify/delete/add)?

2018-07-31 Thread Zeus Panchenko
thanks to everybody for soon reply Michael Ströder wrote: > On 07/30/2018 02:32 PM, Zeus Panchenko wrote: > Basically you have two options: > 1. run something within slapd (back-perl or back-sock) I'm still missing something ... what is/are the condition/s to see a candidate object to sync? I'm

Re: how to run script on event (modify/delete/add)?

2018-07-30 Thread Styopa Semenukha
Our database is fairly small, so we use active polling of a subtree. Our use-case is syncing user account subtree to Google (GCDS, formerly GADS). So we have a script that searches one and only one record with modifyTimestamp newer than the marker. If anything found, it runs the sync utility.

Re: how to run script on event (modify/delete/add)?

2018-07-30 Thread SATOH Fumiyasu
Just FYI. On Mon, 30 Jul 2018 21:32:57 +0900, Zeus Panchenko wrote: > how can I run external script on event (LDAP operation)? I wrote an experimental Perl script a few years ago. https://github.com/fumiyas/ldap2any This uses LDAP syncrepl consumer (Net::LDAP::Control::SyncRequest) to monitor

Re: how to run script on event (modify/delete/add)?

2018-07-30 Thread Michael Ströder
On 07/30/2018 02:32 PM, Zeus Panchenko wrote: how can I run external script on event (LDAP operation)? for example: I am generating config files for users from LDAP data with perl script Basically you have two options: 1. run something within slapd (back-perl or back-sock) 2. implement a syn

how to run script on event (modify/delete/add)?

2018-07-30 Thread Zeus Panchenko
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 greetings, please advise how can I run external script on event (LDAP operation)? for example: I am generating config files for users from LDAP data with perl script I want to re-generate config files each time LDAP operation (modify, add, delete