# Schema include
include         ....
....

modulepath /opt/openldap-2.4/usr/lib64/openldap
allow bind_v2
moduleload syncprov

# Definicoes da base primaria
database hdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
directory /opt/openldap-2.4/var/lib/ldap
rootpw XXXXXXXX
cachesize 100000
idlcachesize 400000
sizelimit 100000
checkpoint 256 30

pidfile         /opt/openldap-2.4/var/run/openldap/slapd.pid
argsfile        /opt/openldap-2.4/var/run/openldap/slapd.args

loglevel        256
threads         32
idletimeout     0

overlay syncprov

# syncrepl directives
syncrepl  rid=0
               provider=ldap://openmasterlb.example.com:389
               bindmethod=simple
               binddn="cn=Manager,dc=example,dc=com"
               credentials=XXXXXX
               searchbase="dc=example,dc=com"
               logbase="cn=accesslog"
               logfilter="(&(objectClass=auditWriteObject)(reqResult=0))"
               type=refreshAndPersist
               retry="60 +"
               syncdata=accesslog

# Refer updates to the master
updateref ldap://openmasterlb.example.com:389

# Monitor
database        monitor
