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

Setting up producer consumer with Syncrepl



Hi,

I am a LDAP newbie. I am trying to set up LDAP producer and consumer. The producer cannot start when I include the overlay syncprov. I get the following when I debug and the server stops. Can any say, what is going wrong here?

I see that there is module syncprov.la in the path given by "modulepath".

Thanks in advance,

Imran

slapd init: initiated server.
slap_sasl_init: initialized!
bdb_back_initialize: initialize BDB backend
bdb_back_initialize: Berkeley DB 4.6.21: (September 27, 2007)
hdb_back_initialize: initialize HDB backend
hdb_back_initialize: Berkeley DB 4.6.21: (September 27, 2007)
bdb_db_init: Initializing BDB database
>>> dnPrettyNormal: <o=example>
<<< dnPrettyNormal: <o=example>, <o=example>
>>> dnPrettyNormal: <cn=root, o=example>
<<< dnPrettyNormal: <cn=root,o=example>, <cn=root,o=example>
overlay "syncprov" not found
slapd destroy: freeing system resources.
slapd stopped.


--------------------------------------------------------------------------
producer slapd.conf
----------------------------------------------------------------------------
include        /etc/openldap/schema/core.schema
include        /etc/openldap/schema/cosine.schema
include        /etc/openldap/schema/nis.schema
include        /etc/openldap/schema/inetorgperson.schema
include        /u/hello/local.schema

pidfile        /tmp/imran-slapd.pid
argsfile    /tmp/imran-slapd.args
loglevel    0

 modulepath    /usr/local/openldap-2.4/libexec/openldap
 moduleload    back_bdb.la
 moduleload    syncprov.la

access to dn.base="" by * read
 access to dn.base="cn=Subschema" by * read
 access to *
    by self write
    by users read
    by anonymous auth
    by dn="cn=replica,o=example" read

database    bdb
suffix        "o=deshaw"
readonly off
rootdn        "cn=root, o=example"

rootpw        secret
lastmod        on
directory    /var/openldap-data/pid1
index    objectClass,entryCSN,entryUUID    eq

overlay syncprov
syncprov-checkpoint 10 5
syncprov-sessionlog 100



-----------------------------------------------------------------------
Consumer slapd.conf
--------------------------------------------------------------------------

include        /etc/openldap/schema/core.schema
include        /etc/openldap/schema/cosine.schema
include        /etc/openldap/schema/nis.schema
include        /etc/openldap/schema/inetorgperson.schema
include        /u/hello/local.schema


pidfile        /tmp/imran-slapd-slave.pid
argsfile    /tmp/imran-slapd-slave.args
loglevel    0


database    bdb
suffix        "o=example"
readonly off
rootdn        "cn=replica, o=example"


index    default    pres,eq
index    objectClass,entryCSN,entryUUID    eq

syncrepl    rid=1
        provider=ldap://127.0.0.1:3089
        type=refreshAndPersist
        searchbase="o=example"
        filter="(objectClass=*)
        scope=sub
        attrs=""
        schemachecking=off
        updatedn="cn=replica,o=example"
        bindmethod=simple
        binddn="cn=replica,o=example"
        credentials="secret"

updateref    ldap:/127.0.0.1:3089