include /etc/ldap/schema/core.schema

pidfile    /var/run/slapd/slapd.pid
argsfile   /var/run/slapd/slapd.args
loglevel   none

moduleload back_hdb
moduleload accesslog
moduleload syncprov

database hdb
suffix cn=accesslog
directory /var/lib/ldap/accesslog
rootdn cn=accesslog
index entryCSN,objectClass,reqEnd,reqResult,reqStart eq

overlay syncprov
syncprov-nopresent TRUE
syncprov-reloadhint TRUE

limits dn.exact="cn=admin,dc=example,dc=com" time.soft=unlimited time.hard=unlimited size.soft=unlimited size.hard=unlimited

database hdb
suffix dc=example,dc=com
directory /var/lib/ldap/data
rootdn cn=admin,dc=example,dc=com
rootpw adminpw

index objectClass eq
index cn pres,eq,sub
index entryCSN,entryUUID eq

overlay syncprov
syncprov-checkpoint 1000 60

overlay accesslog
logdb cn=accesslog
logops writes
logsuccess TRUE
logpurge 07+00:00 01+00:00

limits dn.exact="cn=admin,dc=example,dc=com" time.soft=unlimited time.hard=unlimited size.soft=unlimited size.hard=unlimited
