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

openldap MMR "read_config: no serverID / URL match found"



Hi,

I am using openldap 2.4.39 version and trying to set up multi master replication.

This is my configuration

ServerID        1 "ldap://ldap1-test.com"
ServerID        2 "ldap://ldap2-test.com"

overlay         syncprov
syncprov-checkpoint     10 1
syncprov-sessionlog     100

syncrepl        rid=1
                provider="ldap://ldap1-test.com"
                binddn="uid=replication,ou=People,dc=ldap,dc=nqa,dc=test,dc=com"
                bindmethod=simple
                credentials="xyzabc"
                searchbase="dc=ldap,dc=nqa,dc=test,dc=com"
                type=refreshAndPersist
                interval=00:00:00:10
                retry="5 10 60 +"
                timeout=1
                schemachecking=off
                scope=sub

syncrepl        rid=2
          provider="ldap://ldap2-test.com"
        binddn="uid=replication,ou=People,dc=ldap,dc=nqa,dc=test,dc=com"
                bindmethod=simple
                credentials="xyzabc"
                searchbase="dc=ldap,dc=nqa,dc=test,dc=com"
                type=refreshAndPersist
                interval=00:00:00:10
                retry="5 10 60 +"
                timeout=1
                schemachecking=off
                scope=sub

MirrorMode      on


I have put the below entries in /etc/default/slap

on server 1
SLAPD_SERVICES="ldapi:// ldap://ldap1-test.com"

and server 2
SLAPD_SERVICES="ldapi:// ldap://ldap2-test.com"


After this I am not able to start the service and when I do a slapd -d sync , I get the error "read_config: no serverID / URL match found"


I have seen a similar issue posted in an earlier thread but could not find a solution.


Thanks,

Divya