2007-05-29 01:20:47 +00:00
loglevel 0
2008-09-08 14:39:54 +10:00
### needed for initial content load ###
sizelimit unlimited
2008-08-19 12:03:04 +10:00
### Multimaster-ServerIDs and URLs ###
${MMR_SERVERIDS_CONFIG}
2007-05-29 01:20:47 +00:00
include ${LDAPDIR}/backend-schema.schema
pidfile ${LDAPDIR}/slapd.pid
argsfile ${LDAPDIR}/slapd.args
sasl-realm ${DNSDOMAIN}
2008-07-15 15:15:12 +10:00
#authz-regexp
# uid=([^,]*),cn=${DNSDOMAIN},cn=digest-md5,cn=auth
# ldap:///${DOMAINDN}??sub?(samAccountName=\$1)
2007-05-29 01:20:47 +00:00
2008-07-15 15:15:12 +10:00
#authz-regexp
# uid=([^,]*),cn=([^,]*),cn=digest-md5,cn=auth
# ldap:///${DOMAINDN}??sub?(samAccountName=\$1)
2007-05-29 01:20:47 +00:00
authz-regexp
uid=([^,]*),cn=([^,]*),cn=digest-md5,cn=auth
2008-07-15 15:15:12 +10:00
ldap:///cn=samba??one?(cn=\$1)
authz-regexp
uid=([^,]*),cn=([^,]*),cn=ntlm,cn=auth
ldap:///cn=samba??one?(cn=\$1)
access to dn.base=""
by dn=cn=samba-admin,cn=samba manage
by anonymous read
by * read
access to dn.subtree="cn=samba"
by anonymous auth
access to dn.subtree="${DOMAINDN}"
2008-09-08 14:39:54 +10:00
by dn=cn=samba-admin,cn=samba manage${REPLICATOR_ACL}
2008-07-21 09:36:24 +10:00
by dn=cn=manager manage
2008-07-15 22:07:45 +10:00
by * none
2008-07-15 15:15:12 +10:00
password-hash {CLEARTEXT}
2007-05-29 01:20:47 +00:00
2007-05-29 12:18:41 +00:00
defaultsearchbase ${DOMAINDN}
2007-05-29 01:20:47 +00:00
2008-07-21 09:36:24 +10:00
rootdn cn=Manager
2010-04-22 17:20:21 +10:00
moduleload rdnval
moduleload deref
2008-12-16 09:18:21 +01:00
overlay deref
2010-04-22 17:20:21 +10:00
moduleload refint
2008-07-18 18:58:56 +10:00
${REFINT_CONFIG}
2010-04-22 17:20:21 +10:00
moduleload memberof
2008-03-15 19:03:04 +11:00
${MEMBEROF_CONFIG}
2008-01-01 04:01:07 -06:00
2010-04-22 17:20:21 +10:00
moduleload syncprov
2008-07-15 15:15:12 +10:00
database ldif
suffix cn=Samba
directory ${LDAPDIR}/db/samba
2008-07-21 09:36:24 +10:00
rootdn cn=Manager,cn=Samba
2008-07-15 15:15:12 +10:00
2009-02-24 11:37:58 +11:00
########################################
## olc - configuration ###
2009-08-13 17:01:27 +10:00
database config
rootdn cn=config
2009-02-24 11:37:58 +11:00
${OLC_SYNCREPL_CONFIG}
${OLC_MMR_CONFIG}
2009-08-13 17:01:27 +10:00
access to dn.sub="cn=config"
by dn="cn=samba-admin,cn=samba" write
by dn="cn=replicator,cn=samba" read
2009-02-24 11:37:58 +11:00
2008-08-19 12:03:04 +10:00
########################################
### cn=schema ###
2007-12-13 09:46:41 +01:00
database hdb
2007-05-29 12:18:41 +00:00
suffix ${SCHEMADN}
2008-07-18 18:44:07 +10:00
rootdn cn=Manager,${SCHEMADN}
2007-05-29 01:20:47 +00:00
directory ${LDAPDIR}/db/schema
2009-08-10 09:45:01 +10:00
${NOSYNC}
${INDEX_CONFIG}
2007-05-29 01:20:47 +00:00
2008-01-18 13:28:52 +11:00
#syncprov is stable in OpenLDAP 2.3, and available in 2.2.
2009-02-24 11:37:58 +11:00
#We need this for the contextCSN attribute and mmr.
2008-01-18 13:28:52 +11:00
overlay syncprov
syncprov-sessionlog 100
2009-02-24 11:37:58 +11:00
syncprov-checkpoint 100 10
2008-01-18 13:28:52 +11:00
2010-04-22 17:20:21 +10:00
overlay rdnval
2008-08-19 12:03:04 +10:00
### Multimaster-Replication of cn=schema Subcontext ###
${MMR_SYNCREPL_SCHEMA_CONFIG}
${MIRRORMODE}
#########################################
### cn=config ###
2007-10-01 21:07:07 +00:00
database hdb
2007-05-29 12:18:41 +00:00
suffix ${CONFIGDN}
2008-07-18 18:44:07 +10:00
rootdn cn=Manager,${CONFIGDN}
2007-05-29 01:20:47 +00:00
directory ${LDAPDIR}/db/config
2009-08-10 09:45:01 +10:00
${NOSYNC}
${INDEX_CONFIG}
2007-05-29 01:20:47 +00:00
2008-01-18 13:28:52 +11:00
#syncprov is stable in OpenLDAP 2.3, and available in 2.2.
2009-02-24 11:37:58 +11:00
#We need this for the contextCSN attribute and mmr.
2008-01-18 13:28:52 +11:00
overlay syncprov
syncprov-sessionlog 100
2009-02-24 11:37:58 +11:00
syncprov-checkpoint 100 10
2010-04-22 17:20:21 +10:00
2010-04-20 15:35:51 +10:00
overlay rdnval
2008-08-19 12:03:04 +10:00
### Multimaster-Replication of cn=config Subcontext ###
${MMR_SYNCREPL_CONFIG_CONFIG}
${MIRRORMODE}
2008-01-18 13:28:52 +11:00
2008-08-19 12:03:04 +10:00
########################################
### cn=users /base-dn ###
2007-10-01 21:07:07 +00:00
database hdb
2007-05-29 12:18:41 +00:00
suffix ${DOMAINDN}
2008-07-18 18:44:07 +10:00
rootdn cn=Manager,${DOMAINDN}
2007-05-29 01:20:47 +00:00
directory ${LDAPDIR}/db/user
2009-08-10 09:45:01 +10:00
${NOSYNC}
${INDEX_CONFIG}
2007-05-29 01:20:47 +00:00
#syncprov is stable in OpenLDAP 2.3, and available in 2.2.
2009-02-24 11:37:58 +11:00
#We need this for the contextCSN attribute and mmr.
2007-05-29 01:20:47 +00:00
overlay syncprov
syncprov-sessionlog 100
2009-02-24 11:37:58 +11:00
syncprov-checkpoint 100 10
2010-04-22 17:20:21 +10:00
2010-04-20 15:35:51 +10:00
overlay rdnval
2008-03-15 19:03:04 +11:00
2008-08-19 12:03:04 +10:00
### Multimaster-Replication of cn=user/base-dn context ###
${MMR_SYNCREPL_USER_CONFIG}
${MIRRORMODE}