[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Fwd: Multi-Master OpenLDAP Replication for 3 nodes -- slapadd command failing



NOTE: I am not an OpenLDAP project developer and do not have any sort of 
commit rights to any part of it.

On Thu, 3 Jan 2013, fal patel wrote:
> Thank you very much for your emails.
> 
> Well, it doesn't work for me, and hasn't for the two weeks I've been
> wrestling with it.
>
> Could you please post a *working* LDIF file of Section 18.3.3 "N-Way
> Multi-Master"?
> (I can substitute my real values if you keep the "$xxx" labels in there, of
> course.)

The LDIF in that section on the website apepars, to my eyes, to be 
acceptable, on a piece-wise basis BY THE ldapadd AND/OR ldapmodify 
PROGRAMS INCLUDED IN OPENLDAP.


If you cannot figure out how to set up your server to that its cn=config 
tree can modified with ldapadd and ldapmodify, then stop playing with 
replication and figure that out.


> I want to be able to feed the above LDIF file in to slapadd and obtain 
> both config db replication and also data replication.

Nope, sorry, that's not something that the project documents.  It may be 
possible in some cases but in general you need to use ldapmodify


I stand by my assertion that not all the chunks there are valid RFC 2849 
LDIF.  OpenLDAP's ldapmodify accepts them, but at least this chunk may be 
rejected by other tools that comply with the standard and cannot be 
considered portable
     dn: cn=config
     changetype: modify
     replace: olcServerID
     olcServerID: 1 $URI1
     olcServerID: 2 $URI2
     olcServerID: 3 $URI3

as it lacks the required terminating "-" line.


Philip Guenther