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

LDAPsync replication problem



Hello all!

I'm using openldap 2.2.13. I want to setup a slave replica using LDAPsync.
When I try to start the slapd I get the following error:

# slapd -d2
/etc/openldap/slapd.conf: line 37: unknown directive "syncrepl" in ldbm
database definition (ignored)
slapd starting

Slapd starts and I can perform all the operations on it. But why does its
not able to recognise "syncrepl" in slapd.conf?

My slapd.conf is here:
----------------------------------------
loglevel 0
allow bind_v2

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/qmail.schema
include /etc/openldap/schema/samba.schema
include /etc/openldap/schema/addressBook.schema

pidfile         /var/slapd.pid
argsfile        /var/slapd.args

backend ldbm
database ldbm
suffix "dc=x,dc=y,dc=z"
rootdn "cn=admin,dc=x,dc=y,dc=z"
rootpw secret

directory       /var/openldap-data
index   objectClass     eq

syncrepl rid=012
         provider=ldap://192.168.1.5:389
         type=refreshOnly
         interval=00:00:00:30
         searchbase="dc=x,dc=y,dc=z"
         filter="(objectClass=addressBook)"
         scope=sub
         attrs="cn,sn,ou,telephoneNumber,cellPhone,mail"
         schemachecking=off
         updatedn="cn=admin,dc=x,dc=y,dc=z"
         bindmethod=simple
         binddn="cn=replica,dc=x,dc=y.dc=z"
         credentials=replica

access to dn=".*,ou=addressbook,dc=x,dc=y,dc=z"
        by dn="cn=admin,dc=x,dc=y,dc=z" write
        by * read

access to *
        by dn="cn=admin,dc=x,dc=y,dc=z" write
        by * read

access to * by * read
------------------------------------

Is there any compile time option that has to be enabled while executing
./configure? Any sort of help would be appreciated.

Thanks in advance,

regards,
Nishant