1998-08-08 20:43:13 -04:00
|
|
|
# master slapd config -- for testing
|
2004-04-21 18:14:01 -04:00
|
|
|
# $OpenLDAP: pkg/ldap/tests/data/slapd-acl.conf,v 1.46.2.4 2003/12/15 22:05:29
|
|
|
|
|
kurt Exp $
|
2003-11-28 15:00:23 -05:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
|
##
|
2007-01-02 15:00:42 -05:00
|
|
|
## Copyright 1998-2007 The OpenLDAP Foundation.
|
2003-11-28 15:00:23 -05: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>.
|
|
|
|
|
|
2005-09-28 19:38:15 -04:00
|
|
|
include @SCHEMADIR@/core.schema
|
|
|
|
|
include @SCHEMADIR@/cosine.schema
|
|
|
|
|
include @SCHEMADIR@/inetorgperson.schema
|
|
|
|
|
include @SCHEMADIR@/openldap.schema
|
|
|
|
|
include @SCHEMADIR@/nis.schema
|
|
|
|
|
pidfile @TESTDIR@/slapd.1.pid
|
|
|
|
|
argsfile @TESTDIR@/slapd.1.args
|
1998-08-08 20:43:13 -04:00
|
|
|
|
2001-09-01 01:01:31 -04:00
|
|
|
# global ACLs
|
2004-05-12 20:18:21 -04:00
|
|
|
#
|
|
|
|
|
# normal installations should protect root dse, cn=monitor, cn=subschema
|
|
|
|
|
#
|
|
|
|
|
|
2005-12-13 10:53:10 -05:00
|
|
|
access to dn.exact="" attrs=objectClass
|
2004-05-12 20:18:21 -04:00
|
|
|
by users read
|
|
|
|
|
access to *
|
|
|
|
|
by * read
|
2001-09-01 01:01:31 -04:00
|
|
|
|
2003-12-04 06:15:07 -05:00
|
|
|
#mod#modulepath ../servers/slapd/back-@BACKEND@/
|
|
|
|
|
#mod#moduleload back_@BACKEND@.la
|
2004-07-26 16:26:52 -04:00
|
|
|
#monitormod#modulepath ../servers/slapd/back-monitor/
|
|
|
|
|
#monitormod#moduleload back_monitor.la
|
2003-04-29 23:04:18 -04:00
|
|
|
|
1998-08-08 20:43:13 -04:00
|
|
|
#######################################################################
|
2004-07-26 16:26:52 -04:00
|
|
|
# database definitions
|
1998-08-08 20:43:13 -04:00
|
|
|
#######################################################################
|
|
|
|
|
|
2000-10-01 18:46:52 -04:00
|
|
|
database @BACKEND@
|
2007-06-14 18:29:29 -04:00
|
|
|
|
2004-04-21 18:14:01 -04:00
|
|
|
suffix "dc=example,dc=com"
|
2005-09-28 19:38:15 -04:00
|
|
|
directory @TESTDIR@/db.1.a
|
2004-04-21 18:14:01 -04:00
|
|
|
rootdn "cn=Manager,dc=example,dc=com"
|
1998-08-08 20:43:13 -04:00
|
|
|
rootpw secret
|
2001-10-03 17:27:37 -04:00
|
|
|
#bdb#index objectClass eq
|
|
|
|
|
#bdb#index cn,sn,uid pres,eq,sub
|
2005-08-07 06:01:53 -04:00
|
|
|
#hdb#index objectClass eq
|
|
|
|
|
#hdb#index cn,sn,uid pres,eq,sub
|
2007-06-14 18:29:29 -04:00
|
|
|
|
2005-12-13 10:53:10 -05:00
|
|
|
#access to attrs=objectclass dn.subtree="dc=example,dc=com"
|
|
|
|
|
access to attrs=objectclass
|
1999-10-21 17:23:43 -04:00
|
|
|
by * =rsc stop
|
1999-07-05 02:26:26 -04:00
|
|
|
|
2005-12-13 10:53:10 -05:00
|
|
|
#access to filter="(objectclass=person)" attrs=userpassword dn.subtree="dc=example,dc=com"
|
|
|
|
|
access to filter="(objectclass=person)" attrs=userpassword
|
1999-07-05 02:26:26 -04:00
|
|
|
by anonymous auth
|
2004-04-27 21:58:46 -04:00
|
|
|
by self =wx
|
1999-07-05 02:26:26 -04:00
|
|
|
|
2005-12-09 07:18:29 -05:00
|
|
|
access to dn.exact="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
|
|
|
|
|
attrs=cn val="Mark A Elliot"
|
|
|
|
|
by dn="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
|
|
|
|
|
by * break
|
|
|
|
|
|
|
|
|
|
access to dn.exact="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
|
|
|
|
|
attrs=cn val="Mark Elliot"
|
|
|
|
|
by dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
|
|
|
|
|
by * break
|
|
|
|
|
|
|
|
|
|
access to dn.exact="cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
|
|
|
|
|
attrs=cn
|
|
|
|
|
by * search
|
|
|
|
|
|
|
|
|
|
access to dn.exact="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
|
2005-12-10 05:23:01 -05:00
|
|
|
attrs=cn val.regex="^John D.+"
|
2005-12-09 07:18:29 -05:00
|
|
|
by dn="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
|
|
|
|
|
by * break
|
|
|
|
|
|
|
|
|
|
access to dn.exact="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
|
2005-12-10 05:23:01 -05:00
|
|
|
attrs=cn val.regex="^Jonath.+"
|
2005-12-09 07:18:29 -05:00
|
|
|
by dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
|
|
|
|
|
by * break
|
|
|
|
|
|
|
|
|
|
access to dn.exact="cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com"
|
|
|
|
|
attrs=cn
|
|
|
|
|
by * search
|
|
|
|
|
|
2005-12-10 05:23:01 -05:00
|
|
|
access to dn.onelevel="ou=Information Technology Division,ou=People,dc=example,dc=com"
|
|
|
|
|
filter="(cn=*Jensen)"
|
|
|
|
|
attrs=cn val.regex=".*Jensen$"
|
|
|
|
|
by dn="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
|
|
|
|
|
by dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" read
|
|
|
|
|
by * break
|
|
|
|
|
|
|
|
|
|
access to dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com"
|
|
|
|
|
attrs=cn
|
|
|
|
|
by * search
|
|
|
|
|
|
2004-04-21 18:14:01 -04:00
|
|
|
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
|
2005-01-11 15:15:13 -05:00
|
|
|
by dn.children="dc=example,dc=com" +d continue
|
1999-10-21 17:23:43 -04:00
|
|
|
by * stop
|
1999-07-05 02:26:26 -04:00
|
|
|
|
2005-12-13 10:53:10 -05:00
|
|
|
#access to attrs=member,uniquemember dn.subtree="dc=example,dc=com"
|
|
|
|
|
access to attrs=member,uniquemember
|
2006-06-13 04:53:34 -04:00
|
|
|
by dn.exact="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com" selfwrite
|
1998-08-08 20:43:13 -04:00
|
|
|
by dnattr=member selfwrite
|
2003-08-22 17:03:03 -04:00
|
|
|
by dnattr=uniquemember selfwrite
|
1998-08-08 20:43:13 -04:00
|
|
|
by * read
|
1999-07-05 02:26:26 -04:00
|
|
|
|
2005-12-13 10:53:10 -05:00
|
|
|
#access to attrs=member,uniquemember filter="(mail=*com)" dn.subtree="dc=example,dc=com"
|
|
|
|
|
access to attrs=member,uniquemember filter="(mail=*com)"
|
2002-03-23 20:55:11 -05:00
|
|
|
by * read
|
|
|
|
|
|
2004-05-12 20:18:21 -04:00
|
|
|
#access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))" dn.subtree="dc=example,dc=com"
|
|
|
|
|
access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))"
|
2004-05-07 11:38:42 -04:00
|
|
|
by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" =sc continue
|
2004-05-07 11:28:39 -04:00
|
|
|
by dn.regex="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com$" +rw stop
|
1999-10-21 17:23:43 -04:00
|
|
|
by * break
|
1999-07-05 02:26:26 -04:00
|
|
|
|
2004-05-07 11:28:39 -04:00
|
|
|
access to dn.children="ou=Information Technology Division,ou=People,dc=example,dc=com"
|
|
|
|
|
by group/groupOfUniqueNames/uniqueMember.exact="cn=ITD Staff,ou=Groups,dc=example,dc=com" write
|
2002-09-13 11:04:04 -04:00
|
|
|
by * read
|
|
|
|
|
|
2004-05-12 20:18:21 -04:00
|
|
|
access to dn.exact="cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com"
|
|
|
|
|
by set="[cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com]/member* & user" write
|
|
|
|
|
by * read
|
|
|
|
|
|
|
|
|
|
#access to filter="(name=X*Y*Z)" dn.subtree="dc=example,dc=com"
|
|
|
|
|
access to filter="(name=X*Y*Z)"
|
2002-03-01 13:58:11 -05:00
|
|
|
by * continue
|
|
|
|
|
|
2005-08-06 20:27:48 -04:00
|
|
|
access to dn.subtree="ou=Add & Delete,dc=example,dc=com"
|
2005-04-07 20:18:24 -04:00
|
|
|
by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" add
|
|
|
|
|
by dn.exact="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" delete
|
|
|
|
|
by dn.exact="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com" write
|
|
|
|
|
by * read
|
|
|
|
|
|
2001-09-01 01:01:31 -04:00
|
|
|
# fall into global ACLs
|
2004-07-26 16:26:52 -04:00
|
|
|
|
2005-08-07 06:01:53 -04:00
|
|
|
#monitor#database monitor
|