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:
$mesg = $ldap->search(
base => 'cn=changelog',
scope => 'sub',
filter => '(changetype=add)',
attrs => $attrs,
callback => &callback
);
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 |