1 # master slapd config -- for testing
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2013 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
16 include @SCHEMADIR@/core.schema
17 include @SCHEMADIR@/cosine.schema
18 include @SCHEMADIR@/inetorgperson.schema
19 include @SCHEMADIR@/openldap.schema
20 include @SCHEMADIR@/nis.schema
21 pidfile @TESTDIR@/slapd.1.pid
22 argsfile @TESTDIR@/slapd.1.args
26 # normal installations should protect root dse, cn=monitor, cn=subschema
29 access to dn.exact="" attrs=objectClass
34 #mod#modulepath ../servers/slapd/back-@BACKEND@/
35 #mod#moduleload back_@BACKEND@.la
36 #monitormod#modulepath ../servers/slapd/back-monitor/
37 #monitormod#moduleload back_monitor.la
39 #######################################################################
40 # database definitions
41 #######################################################################
45 suffix "dc=example,dc=com"
46 rootdn "cn=Manager,dc=example,dc=com"
48 #~null~#directory @TESTDIR@/db.1.a
49 #indexdb#index objectClass eq
50 #indexdb#index cn,sn,uid pres,eq,sub
52 #ndb#include @DATADIR@/ndb.conf
54 #access to attrs=objectclass dn.subtree="dc=example,dc=com"
55 access to attrs=objectclass
56 by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" add
59 #access to filter="(objectclass=person)" attrs=userpassword dn.subtree="dc=example,dc=com"
60 access to filter="(objectclass=person)" attrs=userpassword
64 access to dn.exact="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
65 attrs=cn val="Mark A Elliot"
66 by dn="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
69 access to dn.exact="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
70 attrs=cn val="Mark Elliot"
71 by dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
74 access to dn.exact="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
78 access to dn.exact="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
79 attrs=cn val.regex="^John D.+"
80 by dn="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
83 access to dn.exact="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
84 attrs=cn val.regex="^Jonath.+"
85 by dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
88 access to dn.exact="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
92 access to dn.onelevel="ou=Information Technology Division,ou=People,dc=example,dc=com"
94 attrs=cn val.regex=".*Jensen$"
95 by dn="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
96 by dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
99 access to dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com"
103 access to dn.children="ou=Alumni Association,ou=People,dc=example,dc=com"
104 by dn.regex=".+,dc=example,dc=com" +c continue
105 by dn.subtree="dc=example,dc=com" +rs continue
106 by dn.children="dc=example,dc=com" +d continue
109 #access to attrs=member,uniquemember dn.subtree="dc=example,dc=com"
110 access to attrs=member,uniquemember
111 by dn.exact="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com" selfwrite
112 by dnattr=member selfwrite
113 by dnattr=uniquemember selfwrite
116 #access to attrs=member,uniquemember filter="(mail=*com)" dn.subtree="dc=example,dc=com"
117 access to attrs=member,uniquemember filter="(mail=*com)"
120 #access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))" dn.subtree="dc=example,dc=com"
121 access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))"
122 by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" =sc continue
123 by dn.regex="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com$" +rw stop
126 access to dn.children="ou=Information Technology Division,ou=People,dc=example,dc=com"
127 by group/groupOfUniqueNames/uniqueMember.exact="cn=ITD Staff,ou=Groups,dc=example,dc=com" write
130 access to dn.exact="cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com"
131 by set="[cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com]/member* & user" write
134 #access to filter="(name=X*Y*Z)" dn.subtree="dc=example,dc=com"
135 access to filter="(name=X*Y*Z)"
138 access to dn.subtree="ou=Add & Delete,dc=example,dc=com"
139 by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" add
140 by dn.exact="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" delete
141 by dn.exact="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com" write
144 # fall into global ACLs
146 #monitor#database monitor