]> git.sur5r.net Git - openldap/blob - tests/data/slapd-acl.conf
Additional use of new ACL styles
[openldap] / tests / data / slapd-acl.conf
1 # $OpenLDAP$
2 #
3 # master slapd config -- for testing
4 #
5 #include                ./data/slapd.at.conf
6 #include                ./data/slapd.oc.conf
7 include ./schema/core.schema
8 include ./schema/cosine.schema
9 include ./schema/inetorgperson.schema
10 schemacheck     off
11 pidfile     ./test-db/slapd.pid
12 argsfile    ./test-db/slapd.args
13
14 #######################################################################
15 # ldbm database definitions
16 #######################################################################
17
18 database        ldbm
19 cachesize       0
20 suffix          "o=University of Michigan, c=US"
21 directory       ./test-db
22 rootdn          "cn=Manager, o=University of Michigan, c=US"
23 rootpw          secret
24 index           cn,sn,uid       pres,eq
25 lastmod         on
26 defaultaccess   none
27
28 #
29 # normal installations should protect root dse,
30 # cn=monitor, cn=schema, and cn=config
31 #
32
33 access          to attr=objectclass
34                 by * =rsc stop
35
36 access          to filter="objectclass=person" attr=userpassword
37                 by anonymous auth
38                 by self write
39
40 access          to dn.children="ou=Alumni Association, ou=People, o=University of Michigan, c=US"
41                 by dn="^$" +x continue
42                 by dn.regex=".+,o=University of Michigan,c=US" +c continue
43                 by dn.subtree="o=University of Michigan, c=US" +rs continue
44                 by * stop
45
46 access          to attr=member
47                 by dnattr=member selfwrite
48                 by * read
49
50 access          to filter="objectclass=groupofnames"
51                 by dn.base="cn=Bjorn Jensen, ou=Information Technology Division, ou=People, o=University of Michigan,c=US" =sc continue
52                 by dn="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US$" +rw stop
53                 by * break
54
55 access          to * by * read