]> git.sur5r.net Git - openldap/blob - tests/data/slapd-acl.conf
misc cleanup and improvements; please use @URIx@ and @PORTx@ in configurations/tests
[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-2003 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 ./schema/core.schema
18 include ./schema/cosine.schema
19 include ./schema/inetorgperson.schema
20 include ./schema/openldap.schema
21 include ./schema/nis.schema
22 pidfile     ./testrun/slapd.1.pid
23 argsfile    ./testrun/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="" attr=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
38 #######################################################################
39 # ldbm database definitions
40 #######################################################################
41
42 database        @BACKEND@
43 #ldbm#cachesize 0
44 suffix          "dc=example,dc=com"
45 directory       ./testrun/db.1.a
46 rootdn          "cn=Manager,dc=example,dc=com"
47 rootpw          secret
48 #ldbm#index             objectClass     eq
49 #ldbm#index             cn,sn,uid       pres,eq,sub
50 #bdb#index              objectClass     eq
51 #bdb#index              cn,sn,uid       pres,eq,sub
52
53 #access         to attr=objectclass dn.subtree="dc=example,dc=com"
54 access          to attr=objectclass
55                 by * =rsc stop
56
57 #access         to filter="(objectclass=person)" attr=userpassword dn.subtree="dc=example,dc=com"
58 access          to filter="(objectclass=person)" attr=userpassword
59                 by anonymous auth
60                 by self =wx
61
62 access          to dn.children="ou=Alumni Association,ou=People,dc=example,dc=com"
63                 by dn.regex=".+,dc=example,dc=com" +c continue
64                 by dn.subtree="dc=example,dc=com" +rs continue
65                 by * stop
66
67 #access         to attr=member,uniquemember dn.subtree="dc=example,dc=com"
68 access          to attr=member,uniquemember
69                 by dnattr=member selfwrite
70                 by dnattr=uniquemember selfwrite
71                 by * read
72
73 #access         to attr=member,uniquemember filter="(mail=*com)" dn.subtree="dc=example,dc=com"
74 access          to attr=member,uniquemember filter="(mail=*com)"
75                 by * read
76
77 #access         to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))" dn.subtree="dc=example,dc=com"
78 access          to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))"
79                 by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" =sc continue
80                 by dn.regex="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com$" +rw stop
81                 by * break
82
83 access          to dn.children="ou=Information Technology Division,ou=People,dc=example,dc=com"
84                 by group/groupOfUniqueNames/uniqueMember.exact="cn=ITD Staff,ou=Groups,dc=example,dc=com" write
85                 by * read
86
87 access          to dn.exact="cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com"
88                 by set="[cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com]/member* & user" write
89                 by * read
90
91 #access         to filter="(name=X*Y*Z)" dn.subtree="dc=example,dc=com"
92 access          to filter="(name=X*Y*Z)"
93                 by * continue
94
95 # fall into global ACLs