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

Push-based syncrepl + slapo-rwm



Hi,

I'd like to replicate with syncrepl a master directory and change the naming context on the consumer.

I try setup a syncrepl push-based synchronization, with a proxy and slapo-rwm overlay.

Here's what my config looks like :

MASTER LDAP  (suffix : dc=suffix1,dc=com)
    |
    |
    |
PROXY push-based syncrepl and slapo-rwm (rewrite "dc=suffix1,dc=com" to "dc=suffix2,dc=com")
    |
    |
    |
SLAVE (suffix : dc=suffix2,dc=com)

I can't get rewriting working on the proxy, data are pushed to my slave directory with the suffix "dc=suffix1,dc=com".
So replication don't work because of different naming context.

PROXY's slapd.conf looks like this :
##############################
database        ldap
hidden          on
suffix          "dc=suffix2,dc=com
"
rootdn          "cn=admin,
dc=suffix2,dc=com"
uri             ldap://slave/

lastmod         on

restrict        all

acl-bind
        bindmethod=simple
        binddn="cn=admin,
dc=suffix2,dc=com"
        credentials=secret

overlay rwm
rwm-rewriteEngine       on
rwm-suffixmassage       "
dc=suffix2,dc=com"    "dc=suffix1,dc=com"

overlay syncprov
syncrepl        rid=001
        provider=ldap://master/
        binddn="cn=admin,
dc=suffix2,dc=com"
        bindmethod=simple
        credentials=secret
        searchbase="
dc=suffix2,dc=com"
        type=refreshAndPersist
        retry="5 5 300 5"
##############################

What's wrong ?

Thank you for your help.
Regards

Raphael