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
4 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
6 ## Copyright 1998-2005 The OpenLDAP Foundation.
7 ## All rights reserved.
9 ## Redistribution and use in source and binary forms, with or without
10 ## modification, are permitted only as authorized by the OpenLDAP
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>.
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
27 # normal installations should protect root dse, cn=monitor, cn=subschema
30 access to dn.exact="" attr=objectClass
35 #mod#modulepath ../servers/slapd/back-@BACKEND@/
36 #mod#moduleload back_@BACKEND@.la
37 #monitormod#modulepath ../servers/slapd/back-monitor/
38 #monitormod#moduleload back_monitor.la
40 #######################################################################
41 # database definitions
42 #######################################################################
46 suffix "dc=example,dc=com"
47 directory ./testrun/db.1.a
48 rootdn "cn=Manager,dc=example,dc=com"
50 #ldbm#index objectClass eq
51 #ldbm#index cn,sn,uid pres,eq,sub
52 #bdb#index objectClass eq
53 #bdb#index cn,sn,uid pres,eq,sub
55 #access to attr=objectclass dn.subtree="dc=example,dc=com"
56 access to attr=objectclass
59 #access to filter="(objectclass=person)" attr=userpassword dn.subtree="dc=example,dc=com"
60 access to filter="(objectclass=person)" attr=userpassword
64 access to dn.children="ou=Alumni Association,ou=People,dc=example,dc=com"
65 by dn.regex=".+,dc=example,dc=com" +c continue
66 by dn.subtree="dc=example,dc=com" +rs continue
67 by dn.children="dc=example,dc=com" +d continue
70 #access to attr=member,uniquemember dn.subtree="dc=example,dc=com"
71 access to attr=member,uniquemember
72 by dnattr=member selfwrite
73 by dnattr=uniquemember selfwrite
76 #access to attr=member,uniquemember filter="(mail=*com)" dn.subtree="dc=example,dc=com"
77 access to attr=member,uniquemember filter="(mail=*com)"
80 #access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))" dn.subtree="dc=example,dc=com"
81 access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))"
82 by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" =sc continue
83 by dn.regex="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com$" +rw stop
86 access to dn.children="ou=Information Technology Division,ou=People,dc=example,dc=com"
87 by group/groupOfUniqueNames/uniqueMember.exact="cn=ITD Staff,ou=Groups,dc=example,dc=com" write
90 access to dn.exact="cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com"
91 by set="[cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com]/member* & user" write
94 #access to filter="(name=X*Y*Z)" dn.subtree="dc=example,dc=com"
95 access to filter="(name=X*Y*Z)"
98 access to dn.subtree="ou=Add & Delete,dc=example,dc=com"
99 by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" add
100 by dn.exact="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" delete
101 by dn.exact="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com" write
104 # fall into global ACLs
106 #monitor#database monitor