libcli/cldap: make use of samba_tevent_context_init()
[Samba/gebeck_regimport.git] / source4 / setup / slapd.conf
blobc2d92eca392cdff078d43c866fdadf18899425de
1 loglevel 0
3 ### needed for initial content load ###
4 sizelimit unlimited
6 ### Multimaster-ServerIDs and URLs ###
8 ${MMR_SERVERIDS_CONFIG}
10 include ${LDAPDIR}/backend-schema.schema
12 pidfile         ${LDAPDIR}/slapd.pid
13 argsfile        ${LDAPDIR}/slapd.args
14 sasl-realm ${DNSDOMAIN}
16 #authz-regexp
17 #          uid=([^,]*),cn=${DNSDOMAIN},cn=digest-md5,cn=auth
18 #          ldap:///${DOMAINDN}??sub?(samAccountName=\$1)
20 #authz-regexp
21 #          uid=([^,]*),cn=([^,]*),cn=digest-md5,cn=auth
22 #          ldap:///${DOMAINDN}??sub?(samAccountName=\$1)
24 authz-regexp
25           uid=([^,]*),cn=([^,]*),cn=digest-md5,cn=auth
26           ldap:///cn=samba??one?(cn=\$1)
28 authz-regexp
29           uid=([^,]*),cn=([^,]*),cn=ntlm,cn=auth
30           ldap:///cn=samba??one?(cn=\$1)
32 access to dn.base="" 
33        by dn=cn=samba-admin,cn=samba manage
34        by anonymous read
35        by * read
37 access to dn.subtree="cn=samba"
38        by anonymous auth
40 access to dn.subtree="${DOMAINDN}"
41        by dn=cn=samba-admin,cn=samba manage${REPLICATOR_ACL}
42        by dn=cn=manager manage
43        by * none
45 password-hash   {CLEARTEXT}
47 defaultsearchbase ${DOMAINDN}
49 rootdn cn=Manager
51 moduleload rdnval
53 moduleload deref
54 overlay deref
56 moduleload refint
57 ${REFINT_CONFIG}
59 moduleload memberof
60 ${MEMBEROF_CONFIG}
62 moduleload syncprov
64 database        ldif
65 suffix          cn=Samba
66 directory       ${LDAPDIR}/db/samba
67 rootdn          cn=Manager,cn=Samba
69 ########################################
70 ## olc - configuration ###
71 database        config
72 rootdn          cn=config
74 ${OLC_SYNCREPL_CONFIG}
75 ${OLC_MMR_CONFIG}
77 access to dn.sub="cn=config"
78         by dn="cn=samba-admin,cn=samba" write
79         by dn="cn=replicator,cn=samba" read
82 ########################################
83 ### cn=schema ###
84 database        hdb
85 suffix          ${SCHEMADN}
86 rootdn          cn=Manager,${SCHEMADN}
87 directory       ${LDAPDIR}/db/schema
88 ${NOSYNC}
89 ${INDEX_CONFIG}
91 #syncprov is stable in OpenLDAP 2.3, and available in 2.2.  
92 #We need this for the contextCSN attribute and mmr.
93 overlay syncprov
94 syncprov-sessionlog 100
95 syncprov-checkpoint 100 10
97 overlay rdnval
99 ### Multimaster-Replication of cn=schema Subcontext ###
100 ${MMR_SYNCREPL_SCHEMA_CONFIG}
101 ${MIRRORMODE}
103 #########################################
104 ### cn=config ###
105 database        hdb
106 suffix          ${CONFIGDN}
107 rootdn          cn=Manager,${CONFIGDN}
108 directory       ${LDAPDIR}/db/config
109 ${NOSYNC}
110 ${INDEX_CONFIG}
112 #syncprov is stable in OpenLDAP 2.3, and available in 2.2.  
113 #We need this for the contextCSN attribute and mmr.
114 overlay syncprov
115 syncprov-sessionlog 100
116 syncprov-checkpoint 100 10
118 overlay rdnval
120 ### Multimaster-Replication of cn=config Subcontext ###
121 ${MMR_SYNCREPL_CONFIG_CONFIG}
122 ${MIRRORMODE}
124 ########################################
125 ### cn=users /base-dn  ###
126 database        hdb
127 suffix          ${DOMAINDN}
128 rootdn          cn=Manager,${DOMAINDN}
129 directory       ${LDAPDIR}/db/user
130 ${NOSYNC}
131 ${INDEX_CONFIG}
133 #syncprov is stable in OpenLDAP 2.3, and available in 2.2.  
134 #We need this for the contextCSN attribute and mmr.
135 overlay syncprov
136 syncprov-sessionlog 100
137 syncprov-checkpoint 100 10
139 overlay rdnval
141 ### Multimaster-Replication of cn=user/base-dn context ###
142 ${MMR_SYNCREPL_USER_CONFIG}
143 ${MIRRORMODE}