r23717: We need to remove the _ in LDAP_MANAGERPASS for the
[ira/wip.git] / source / setup / slapd.conf
1 loglevel 0
2
3 include ${LDAPDIR}/backend-schema.schema
4
5 pidfile         ${LDAPDIR}/slapd.pid
6 argsfile        ${LDAPDIR}/slapd.args
7 sasl-realm ${DNSDOMAIN}
8 access to * by * write
9
10 allow update_anon
11
12 authz-regexp
13           uid=([^,]*),cn=${DNSDOMAIN},cn=digest-md5,cn=auth
14           ldap:///${DOMAINDN}??sub?(samAccountName=\$1)
15
16 authz-regexp
17           uid=([^,]*),cn=([^,]*),cn=digest-md5,cn=auth
18           ldap:///${DOMAINDN}??sub?(samAccountName=\$1)
19
20 include ${LDAPDIR}/modules.conf
21
22 defaultsearchbase ${DOMAINDN}
23
24 backend         bdb
25 database        bdb
26 suffix          ${SCHEMADN}
27 directory       ${LDAPDIR}/db/schema
28 index           objectClass eq
29 index           samAccountName eq
30 index name eq
31 index objectCategory eq
32 index lDAPDisplayName eq
33 index subClassOf eq
34
35 database        bdb
36 suffix          ${CONFIGDN}
37 directory       ${LDAPDIR}/db/config
38 index           objectClass eq
39 index           samAccountName eq
40 index name eq
41 index objectSid eq
42 index objectCategory eq
43 index nCName eq pres
44 index subClassOf eq
45 index dnsRoot eq
46 index nETBIOSName eq pres
47
48 database        bdb
49 suffix          ${DOMAINDN}
50 rootdn          ${LDAPMANAGERDN}
51 rootpw          ${LDAPMANAGERPASS}
52 directory       ${LDAPDIR}/db/user
53 index           objectClass eq
54 index           samAccountName eq
55 index name eq
56 index objectSid eq
57 index objectCategory eq
58 index member eq
59 index uidNumber eq
60 index gidNumber eq
61 index unixName eq
62 index privilege eq
63 index nCName eq pres
64 index lDAPDisplayName eq
65 index subClassOf eq
66 index dnsRoot eq
67 index nETBIOSName eq pres
68
69 #syncprov is stable in OpenLDAP 2.3, and available in 2.2.  
70 #We only need this for the contextCSN attribute anyway....
71 overlay syncprov
72 syncprov-checkpoint 100 10
73 syncprov-sessionlog 100