[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: how to run script on event (modify/delete/add)?
- To: openldap-technical@openldap.org
- Subject: Re: how to run script on event (modify/delete/add)?
- From: Styopa Semenukha <ssemenukha@developmentgateway.org>
- Date: Mon, 30 Jul 2018 12:06:21 -0400
- Content-language: en-US
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=developmentgateway.org; s=google; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wT2fCv4vTjOuavGkP3t0W87AAJSP3mECeJQOAng0SPM=; b=KqxuVf8w2aRyOWpn+nV+hSe5UuA6xKltaAt7CyKlWEKA8tfkysJSbI2B4rSPyMqVdM nPevKScy9ZFUyOZB1whMJ0zfp87ykXCNkf9ZOG5bbIxhTQcj+miuDUjExoRnNablxG7I T4yHMGDgeN5MStk39YKf4OEWBHUNH2lsiSOQQ=
- In-reply-to: <20180730153257.48665@relay.xx>
- Organization: Development Gateway
- References: <20180730153257.48665@relay.xx>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
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.
It's under GPLv3 here: https://github.com/devgateway/ldapwatch
Usage:
/usr/local/bin/ldapwatch ldaps://ldap.example.org
ou=people,dc=example,dc=org '/opt/google/sync/sync-cmd --foobar'
On 07/30/2018 08:32 AM, Zeus Panchenko wrote:
-----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) performed
how to do that and what is the best way to do that?
- --
Zeus V. Panchenko jid:zeus@im.ibs.dn.ua
IT Dpt., I.B.S. LLC GMT+2 (EET)
-----BEGIN PGP SIGNATURE-----
iF0EARECAB0WIQQYIXL6FUmD7SUfqoOveOk+D/ejKgUCW18FeQAKCRCveOk+D/ej
KtXaAJ949HG/9hwOP9z5RgvSUfjRR27nQQCgljD0MPOTdZevhdBt2u87Oeq1Frk=
=NBxz
-----END PGP SIGNATURE-----
--
Best regards,
Styopa Semenukha,
Senior IT Analyst at Development Gateway.