openldap 2.4.11 - mirrored replication
I am trying to set up two Linux Redhat servers running openldap 2.4.11 to use mirrored replication. The documentation for this from openldap.org is pretty poor.
I've set up the following slapd.conf on both servers with the only difference being the serverID entry. (I've xxx'd out a few fields. xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy are the ip addresses of the two servers). I've configured with --enable-debug so I get a lot of debug information, but I'm not seeing anything that indicates an error is occurring. However, the data added to one ldap server is not being replicated in the other.
Any ideas?
#------------------------------------------------------------------------------
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/amhs_rfc2294.schema
#------------------------------------------------------------------------------
allow bind_v2
loglevel -1
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
#------------------------------------------------------------------------------
# ldbm and/or bdb database definitions
database bdb
suffix "dc=amhs"
rootdn "cn=manager,dc=amhs"
#------------------------------------------------------------------------------
# Cleartext passwords, especially for the rootdn, should be avoided. See
# slappasswd(8) and slapd.conf(5) for details. Use of strong authentication
# is encouraged.
# password is bluebell
rootpw secret
rootpw {SSHA}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#------------------------------------------------------------------------------
# The database directory MUST exist prior to running slapd AND should only be
# accessible by the slapd and slap tools. Mode 700 recommended.
directory /usr/local/var/openldap-data
mode 0600
#------------------------------------------------------------------------------
# Indices to maintain for this database
index objectClass eq
index cn eq,pres
index personalName eq,pres
index mHSSurname eq,sub,pres
index mHSCommonName eq,pres
#
#------------------------------------------------------------------------------
# Replication support using syncrepl -- on all masters (mirror mode)
serverID 1
syncrepl rid=001
interval=00:00:00:30
provider=ldap://xxx.xxx.xxx.xxx:389
bindmethod=simple
binddn="cn=manager,dc=amhs"
credentials=bluebell
searchbase="dc=amhs"
schemachecking=on
type=refreshAndPersist
retry="60 +"
syncrepl rid=002
interval=00:00:00:30
provider=ldap://yyy.yyy.yyy.yyy:389
bindmethod=simple
binddn="cn=manager,dc=amhs"
credentials=bluebell
searchbase="dc=amhs"
schemachecking=on
type=refreshAndPersist
retry="60 +"
mirrormode on