Perl: the Markov chain saw | |
PerlMonks |
Re: Re: LDAP replication using Perlby mlm (Novice) |
on Aug 16, 2001 at 02:06 UTC ( [id://105207]=note: print w/replies, xml ) | Need Help?? |
Yes, I have been using the Net::LDAP lib quite abit... What I am most interested in is the LDAP replication feature. Here's what I currently have: As stated by Netscape "Replication is the mechanism by which directory data is automatically copied from one directory server to another. Using replication, you can copy everything from entire directory trees to individual directory entries between servers." Once you have configured Netscape LDAP for replication, it updates the: /usr/netscape/server4/slapd-Directory/changelogdb/log.00001 file every time an LDAP operation occurs. By monitoring this file, I can trigger my event. But, this is not an optimal solution, because every time it changes, I have to make a changelog call such as the following:
And then parse the return to check for changes. This is CPU expensive. The method I am looking for is a way for perl to emulate another LDAP database so that Netscape will automatically send replication updates to it, I would then trigger on only the updates I'm interested in. -mlm
In Section
Seekers of Perl Wisdom
|
|