include /etc/ldap/schema/core.schema

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

moduleload back_hdb

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 entryUUID eq

syncrepl rid=0
	provider=ldap://localhost:3800
	bindmethod=simple
	binddn="cn=admin,dc=example,dc=com"
	credentials="adminpw"
	searchbase="dc=example,dc=com"
	logbase="cn=accesslog"
	logfilter="(&(objectClass=auditWriteObject)(reqResult=0))"
	type=refreshAndPersist
	retry="10 +"
	syncdata=accesslog

updateref ldap://localhost:3800

access to * by users read
