]> git.sur5r.net Git - openldap/blob - tests/data/slapd-acl.conf
more cleanup
[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 ucdata-path     ./ucdata
18 include ./schema/core.schema
19 include ./schema/cosine.schema
20 include ./schema/inetorgperson.schema
21 include ./schema/openldap.schema
22 include ./schema/nis.schema
23 pidfile     ./testrun/slapd.1.pid
24 argsfile    ./testrun/slapd.1.args
25
26 # global ACLs
27 access to dn.exact="" attr=objectClass by users read
28 access to * by * read
29
30 #mod#modulepath ../servers/slapd/back-@BACKEND@/
31 #mod#moduleload back_@BACKEND@.la
32
33 #######################################################################
34 # ldbm database definitions
35 #######################################################################
36
37 database        @BACKEND@
38 #ldbm#cachesize 0
39 suffix          "dc=example,dc=com"
40 directory       ./testrun/db.1.a
41 rootdn          "cn=Manager,dc=example,dc=com"
42 rootpw          secret
43 #ldbm#index             objectClass     eq
44 #ldbm#index             cn,sn,uid       pres,eq,sub
45 #bdb#index              objectClass     eq
46 #bdb#index              cn,sn,uid       pres,eq,sub
47
48 #
49 # normal installations should protect root dse, cn=monitor, cn=subschema
50 #
51
52 # these are equivalent
53 access to dn="" by * read
54 access to dn.exact="" by * read
55
56 access          to attr=objectclass
57                 by * =rsc stop
58
59 access          to filter="(objectclass=person)" attr=userpassword dn.subtree=""
60                 by anonymous auth
61                 by self =wx
62
63 access          to dn.children="ou=Alumni Association,ou=People,dc=example,dc=com"
64                 by dn.regex=".+,dc=example,dc=com" +c continue
65                 by dn.subtree="dc=example,dc=com" +rs continue
66                 by * stop
67
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)"
74                 by * read
75
76 access to filter="(&(objectclass=groupofnames)(objectClass=groupofuniquenames))"
77                 by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" =sc continue
78                 by dn.regex="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com$" +rw stop
79                 by * break
80
81 access          to dn.children="ou=Information Technology Division,ou=People,dc=example,dc=com"
82                 by group/groupOfUniqueNames/uniqueMember.exact="cn=ITD Staff,ou=Groups,dc=example,dc=com" write
83                 by * read
84
85 access  to filter="(name=X*Y*Z)"
86                 by * continue
87
88 # fall into global ACLs