Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: LDAP replication using Perl

by t0mas (Priest)
on Aug 16, 2001 at 11:13 UTC ( [id://105291]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: LDAP replication using Perl
in thread LDAP replication using Perl

I don't think that iDS uses a standard LDAP call to update its replicas. It transfers more data, like changelognumber and credentials, between the both servers. This means that you can't use an, for example, OpenLdap server as a consumer for an iDS supplier. If it had used standard LDAP calls, you should have been able to use a LDAP server from any vendor as a consumer, which you can't.

So you will not only need to emulate an iDS but also its Admin Server and the changelognumber transfering.

If your application uses the LDAP server in a normal way (i.e. >95% of the requests are reads) I would write a plug-in that triggers on SLAPI_PLUGIN_POST_MODIFY_FN operation and write the modified data to a file. You could run that plug-in on a dedicated consumer and have a perl deamon poll for changes to that file.

Just some thougths...

/brother t0mas

Replies are listed 'Best First'.
Re: Re: Re: Re: LDAP replication using Perl
by mlm (Novice) on Aug 17, 2001 at 00:31 UTC
    I would like to thank brother t0mas, and everyone who responded to my question. I looked into the Plug-in idea and I think this will work very well. I plan to implement a veriant of the suggested solution, I will have the plug-in write the info to a socket and setup a perl daemon to watch a specific port and trigger the event. This will allow it to field events from multiple LDAP instances. I will let you know how it turns out. -mlm
Re: Re: Re: Re: LDAP replication using Perl
by mlm (Novice) on Aug 18, 2001 at 01:16 UTC

    OK...As a follow up...I setup a prototype of the netscape plugin with a routine to send the add request info out a tcp port everytime an add operation occured, and a perl tcp server watching that port to trigger the event upon receiving data...And it worked great!!!...If anyone is interested in the code, I can mock up a simplified version of each and post them.

    -mlm

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://105291]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found