]> git.sur5r.net Git - openldap/blob - tests/data/slapd-acl.conf
a6dd4ef8a5057d7f65cc0a3b1caf82203def84a2
[openldap] / tests / data / slapd-acl.conf
1 # $OpenLDAP$
2 #
3 # master slapd config -- for testing
4 #
5 ucdata-path     ./ucdata
6 include ./schema/core.schema
7 include ./schema/cosine.schema
8 include ./schema/inetorgperson.schema
9 schemacheck     off
10 pidfile     ./test-db/slapd.pid
11 argsfile    ./test-db/slapd.args
12
13 #######################################################################
14 # ldbm database definitions
15 #######################################################################
16
17 database        @BACKEND@
18 cachesize       0
19 suffix          "o=University of Michigan, c=US"
20 directory       ./test-db
21 rootdn          "cn=Manager, o=University of Michigan, c=US"
22 rootpw          secret
23 index           objectClass     eq
24 index           cn,sn,uid       pres,eq,sub
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.regex=".+,o=University of Michigan,c=US" +c continue
42                 by dn.subtree="o=University of Michigan, c=US" +rs continue
43                 by * stop
44
45 access          to attr=member
46                 by dnattr=member selfwrite
47                 by * read
48
49 access          to filter="objectclass=groupofnames"
50                 by dn.base="cn=Bjorn Jensen, ou=Information Technology Division, ou=People, o=University of Michigan,c=US" =sc continue
51                 by dn="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US$" +rw stop
52                 by * break
53
54 access          to * by * read