OpenLDAP MultiMaster Replication


For server 1 add following lines on  /etc/ldap/ldap.conf

#
# LDAP Defaults
#

loglevel 256

BASE dc=ldap,dc=devserver,dc=local

URI ldap://openldap.devserver ldap://openldap2.devserver

serverID 1 “ldap://openldap.devserver”

moduleload syncprov
overlay syncprov
syncprov-checkpoint 10 1
syncprov-sessionlog 100

syncRepl rid=1
provider=”ldap://openldap2.devserver”
binddn=”cn=admin,dc=ldap,dc=devserver,dc=local”
bindmethod=simple
credentials=ldap
searchbase=”dc=ldap,dc=devserver,dc=local”
type=refreshAndPersist
retry=”1,2,3,4,5,+”
interval=00:00:00:01

mirrormode on

database monitor

 

For server 2 add following lines on  /etc/ldap/ldap.conf

#
# LDAP Defaults
#

loglevel 256

BASE dc=ldap,dc=devserver,dc=local

URI ldap://openldap.devserver ldap://openldap2.devserver

serverID 2 “ldap://openldap2.devserver”

moduleload syncprov
overlay syncprov
syncprov-checkpoint 10 1
syncprov-sessionlog 100

syncRepl rid=1
provider=”ldap://openldap.devserver”
binddn=”cn=admin,dc=ldap,dc=devserver,dc=local”
bindmethod=simple
credentials=ldap
searchbase=”dc=ldap,dc=devserver,dc=local”
type=refreshAndPersist
retry=”1,2,3,4,5,+”
interval=00:00:00:01

mirrormode on

database monitor

 

Post command

 /etc/init.d/slapd restart on both server

 

, , ,

Comments are closed.