]> git.sur5r.net Git - openldap/blob - tests/data/slapd-acl.conf
Disable reverse lookups by default for security
[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 include ./schema/openldap.schema
10 pidfile     ./test-db/slapd.pid
11 argsfile    ./test-db/slapd.args
12
13 # global ACLs
14 access to dn.base="" attr=objectClass by users read
15 access to * by * read
16
17 #######################################################################
18 # ldbm database definitions
19 #######################################################################
20
21 database        @BACKEND@
22 #ldbm#cachesize 0
23 suffix          "o=University of Michigan,c=US"
24 directory       ./test-db
25 rootdn          "cn=Manager,o=University of Michigan,c=US"
26 rootpw          secret
27 #ldbm#index             objectClass     eq
28 #ldbm#index             cn,sn,uid       pres,eq,sub
29 #bdb#index              objectClass     eq
30 #bdb#index              cn,sn,uid       pres,eq,sub
31
32 #
33 # normal installations should protect root dse,
34 # cn=monitor, cn=schema, and cn=config
35 #
36
37 access to dn="" by * read
38 access to dn.base="" by * read
39
40 access          to attr=objectclass
41                 by * =rsc stop
42
43 access          to filter="(objectclass=person)" attr=userpassword
44                 by anonymous auth
45                 by self write
46
47 access          to dn.children="ou=Alumni Association,ou=People,o=University of Michigan,c=US"
48                 by dn.regex=".+,o=University of Michigan,c=US" +c continue
49                 by dn.subtree="o=University of Michigan,c=US" +rs continue
50                 by * stop
51
52 access          to attr=member
53                 by dnattr=member selfwrite
54                 by * read
55
56 access          to attr=member filter=(mail=*edu)
57                 by * read
58
59 access          to filter="(objectclass=groupofnames)"
60                 by dn.base="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US" =sc continue
61                 by dn="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US$" +rw stop
62                 by * break
63
64 access          to dn.children="ou=Information Technology Division,ou=People,o=University of Michigan,c=US"
65                 by group.exact="cn=ITD Staff,ou=Groups,o=University of Michigan,c=US" write
66                 by * read
67
68 access  to filter="(name=X*Y*Z)"
69                 by * continue
70
71 # fall into global ACLs