openldap/tests/data/slapd-acl.conf

93 lines
2.7 KiB
Plaintext
Raw Normal View History

1998-08-09 08:43:13 +08:00
# master slapd config -- for testing
# $OpenLDAP: pkg/ldap/tests/data/slapd-acl.conf,v 1.46.2.4 2003/12/15 22:05:29
kurt Exp $
2003-11-29 04:00:23 +08:00
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
## Copyright 1998-2003 The OpenLDAP Foundation.
2003-11-29 04:00:23 +08:00
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
2000-09-04 07:48:35 +08:00
ucdata-path ./ucdata
include ./schema/core.schema
include ./schema/cosine.schema
include ./schema/inetorgperson.schema
include ./schema/openldap.schema
include ./schema/nis.schema
pidfile ./testrun/slapd.1.pid
argsfile ./testrun/slapd.1.args
1998-08-09 08:43:13 +08:00
2001-09-01 13:01:31 +08:00
# global ACLs
access to dn.base="" attr=objectClass by users read
access to * by * read
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
1998-08-09 08:43:13 +08:00
#######################################################################
# ldbm database definitions
#######################################################################
database @BACKEND@
2002-01-14 11:42:24 +08:00
#ldbm#cachesize 0
suffix "dc=example,dc=com"
directory ./testrun/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
1998-08-09 08:43:13 +08:00
rootpw secret
2001-08-01 12:50:47 +08:00
#ldbm#index objectClass eq
#ldbm#index cn,sn,uid pres,eq,sub
2001-10-04 05:27:37 +08:00
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#
2003-02-25 01:15:31 +08:00
# normal installations should protect root dse, cn=monitor, cn=subschema
#
access to dn="" by * read
access to dn.base="" by * read
1998-08-09 08:43:13 +08:00
access to attr=objectclass
1999-10-22 05:23:43 +08:00
by * =rsc stop
2003-09-16 05:50:13 +08:00
access to filter="(objectclass=person)" attr=userpassword dn.subtree=""
by anonymous auth
1999-10-22 02:48:16 +08:00
by self write
access to dn.children="ou=Alumni Association,ou=People,dc=example,dc=com"
by dn.regex=".+,dc=example,dc=com" +c continue
by dn.subtree="dc=example,dc=com" +rs continue
1999-10-22 05:23:43 +08:00
by * stop
access to attr=member,uniquemember
1998-08-09 08:43:13 +08:00
by dnattr=member selfwrite
by dnattr=uniquemember selfwrite
1998-08-09 08:43:13 +08:00
by * read
access to attr=member,uniquemember filter=(mail=*com)
2002-03-24 09:55:11 +08:00
by * read
access to filter="(&(objectclass=groupofnames)(objectClass=groupofuniquenames)
)"
by dn.base="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=
example,dc=com" =sc continue
by dn.regex="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,d
c=example,dc=com$" +rw stop
1999-10-22 05:23:43 +08:00
by * break
access to dn.children="ou=Information Technology Division,ou=People,dc=exampl
e,dc=com"
by group/groupOfUniqueNames/uniqueMember.exact="cn=ITD Staff,ou=Groups,dc=ex
ample,dc=com" write
2002-09-13 23:04:04 +08:00
by * read
2002-03-02 02:58:11 +08:00
access to filter="(name=X*Y*Z)"
by * continue
2001-09-01 13:01:31 +08:00
# fall into global ACLs