]> git.sur5r.net Git - openldap/blob - tests/data/slapd-acl.conf
be1d30f9df2980134bc33537d0d637a1300a00d1
[openldap] / tests / data / slapd-acl.conf
1 # master slapd config -- for testing
2 # $OpenLDAP: pkg/ldap/tests/data/slapd-acl.conf,v 1.46.2.4 2003/12/15 22:05:29
3   kurt Exp $
4 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ##
6 ## Copyright 1998-2007 The OpenLDAP Foundation.
7 ## All rights reserved.
8 ##
9 ## Redistribution and use in source and binary forms, with or without
10 ## modification, are permitted only as authorized by the OpenLDAP
11 ## Public License.
12 ##
13 ## A copy of this license is available in the file LICENSE in the
14 ## top-level directory of the distribution or, alternatively, at
15 ## <http://www.OpenLDAP.org/license.html>.
16
17 include         @SCHEMADIR@/core.schema
18 include         @SCHEMADIR@/cosine.schema
19 include         @SCHEMADIR@/inetorgperson.schema
20 include         @SCHEMADIR@/openldap.schema
21 include         @SCHEMADIR@/nis.schema
22 pidfile         @TESTDIR@/slapd.1.pid
23 argsfile        @TESTDIR@/slapd.1.args
24
25 # global ACLs
26 #
27 # normal installations should protect root dse, cn=monitor, cn=subschema
28 #
29
30 access          to dn.exact="" attrs=objectClass
31                 by users read
32 access          to *
33                 by * read
34
35 #mod#modulepath ../servers/slapd/back-@BACKEND@/
36 #mod#moduleload back_@BACKEND@.la
37 #monitormod#modulepath ../servers/slapd/back-monitor/
38 #monitormod#moduleload back_monitor.la
39
40 #######################################################################
41 # database definitions
42 #######################################################################
43
44 database        @BACKEND@
45
46 suffix          "dc=example,dc=com"
47 directory       @TESTDIR@/db.1.a
48 rootdn          "cn=Manager,dc=example,dc=com"
49 rootpw          secret
50 #bdb#index              objectClass     eq
51 #bdb#index              cn,sn,uid       pres,eq,sub
52 #hdb#index              objectClass     eq
53 #hdb#index              cn,sn,uid       pres,eq,sub
54
55 #access         to attrs=objectclass dn.subtree="dc=example,dc=com"
56 access          to attrs=objectclass
57                 by * =rsc stop
58
59 #access         to filter="(objectclass=person)" attrs=userpassword dn.subtree="dc=example,dc=com"
60 access          to filter="(objectclass=person)" attrs=userpassword
61                 by anonymous auth
62                 by self =wx
63
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
67                 by * break
68
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
72                 by * break
73
74 access          to dn.exact="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
75                         attrs=cn
76                 by * search
77
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
81                 by * break
82
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
86                 by * break
87
88 access          to dn.exact="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
89                         attrs=cn
90                 by * search
91
92 access          to dn.onelevel="ou=Information Technology Division,ou=People,dc=example,dc=com"
93                         filter="(cn=*Jensen)"
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
97                 by * break
98
99 access          to dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com"
100                         attrs=cn
101                 by * search
102
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
107                 by * stop
108
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
114                 by * read
115
116 #access         to attrs=member,uniquemember filter="(mail=*com)" dn.subtree="dc=example,dc=com"
117 access          to attrs=member,uniquemember filter="(mail=*com)"
118                 by * read
119
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
124                 by * break
125
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
128                 by * read
129
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
132                 by * read
133
134 #access         to filter="(name=X*Y*Z)" dn.subtree="dc=example,dc=com"
135 access          to filter="(name=X*Y*Z)"
136                 by * continue
137
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
142                 by * read
143
144 # fall into global ACLs
145
146 #monitor#database       monitor