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

Re: syncrepl LDIF kickstart file

Scott Classen wrote:
Hello openldap community,

I have openldap 2.4.6 running on 2 machines.

one master server with a BDB database acting as the syncrepl provider (the
syncrep[l overlay has been added to the database configuration directive).

I now have set up a second machine also running openldap 2.4.6 and I've been
playing around with it trying to get it to act as a syncrepl consumer.

I remember reading somewhere in the openldap documentation that it should be
fairly straight forward with a simple 10-12 line LDIF file to get the synrepl
consumer synched up with the provider.

Can someone please post an example of such a simple kickstart file? Thanks ^6,

Sounds vaguely like you want this (from http://www.openldap.org/pub/hyc/LDAPcon2007s.pdf page 20)

dn: cn=config
objectclass: olcglobal
cn: config

dn: olcdatabase={0}config,cn=config
objectclass: olcdatabaseconfig
olcdatabase: {0}config
olcsyncrepl: rid=001 provider=$URI binddn="cn=config" bindmethod=simple
  credentials=$CONFIGPW searchbase="cn=config" type=refreshOnly

Slapadding this will fully initialize a new server if you point it at an existing provider, but of course you need to have the syncprov overlay configured on the config database of the provider.

See test049 in the test suite for a more detailed example.

  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP     http://www.openldap.org/project/