1998-08-09 08:43:13 +08:00
|
|
|
# master slapd config -- for testing
|
2004-04-22 06:14:01 +08:00
|
|
|
# $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/>.
|
|
|
|
##
|
2005-01-02 04:49:32 +08:00
|
|
|
## Copyright 1998-2005 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-05-30 00:39:16 +08:00
|
|
|
include ./schema/core.schema
|
|
|
|
include ./schema/cosine.schema
|
|
|
|
include ./schema/inetorgperson.schema
|
2001-12-20 07:41:31 +08:00
|
|
|
include ./schema/openldap.schema
|
2003-08-08 00:42:40 +08:00
|
|
|
include ./schema/nis.schema
|
2003-10-22 13:14:08 +08:00
|
|
|
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
|
2004-05-13 08:18:21 +08:00
|
|
|
#
|
|
|
|
# normal installations should protect root dse, cn=monitor, cn=subschema
|
|
|
|
#
|
|
|
|
|
|
|
|
access to dn.exact="" attr=objectClass
|
|
|
|
by users read
|
|
|
|
access to *
|
|
|
|
by * read
|
2001-09-01 13:01:31 +08:00
|
|
|
|
2003-12-04 19:15:07 +08:00
|
|
|
#mod#modulepath ../servers/slapd/back-@BACKEND@/
|
|
|
|
#mod#moduleload back_@BACKEND@.la
|
2004-07-27 04:26:52 +08:00
|
|
|
#monitormod#modulepath ../servers/slapd/back-monitor/
|
|
|
|
#monitormod#moduleload back_monitor.la
|
2003-04-30 11:04:18 +08:00
|
|
|
|
1998-08-09 08:43:13 +08:00
|
|
|
#######################################################################
|
2004-07-27 04:26:52 +08:00
|
|
|
# database definitions
|
1998-08-09 08:43:13 +08:00
|
|
|
#######################################################################
|
|
|
|
|
2000-10-02 06:46:52 +08:00
|
|
|
database @BACKEND@
|
2002-01-14 11:42:24 +08:00
|
|
|
#ldbm#cachesize 0
|
2004-04-22 06:14:01 +08:00
|
|
|
suffix "dc=example,dc=com"
|
2003-10-22 13:14:08 +08:00
|
|
|
directory ./testrun/db.1.a
|
2004-04-22 06:14:01 +08:00
|
|
|
rootdn "cn=Manager,dc=example,dc=com"
|
1998-08-09 08:43:13 +08:00
|
|
|
rootpw secret
|
2001-10-04 05:27:37 +08:00
|
|
|
#bdb#index objectClass eq
|
|
|
|
#bdb#index cn,sn,uid pres,eq,sub
|
2005-08-07 18:01:53 +08:00
|
|
|
#hdb#index objectClass eq
|
|
|
|
#hdb#index cn,sn,uid pres,eq,sub
|
|
|
|
#ldbm#index objectClass eq
|
|
|
|
#ldbm#index cn,sn,uid pres,eq,sub
|
1999-07-05 14:26:26 +08:00
|
|
|
|
2004-05-13 08:18:21 +08:00
|
|
|
#access to attr=objectclass dn.subtree="dc=example,dc=com"
|
1998-08-09 08:43:13 +08:00
|
|
|
access to attr=objectclass
|
1999-10-22 05:23:43 +08:00
|
|
|
by * =rsc stop
|
1999-07-05 14:26:26 +08:00
|
|
|
|
2004-05-13 08:18:21 +08:00
|
|
|
#access to filter="(objectclass=person)" attr=userpassword dn.subtree="dc=example,dc=com"
|
|
|
|
access to filter="(objectclass=person)" attr=userpassword
|
1999-07-05 14:26:26 +08:00
|
|
|
by anonymous auth
|
2004-04-28 09:58:46 +08:00
|
|
|
by self =wx
|
1999-07-05 14:26:26 +08:00
|
|
|
|
2004-04-22 06:14:01 +08: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-12 04:15:13 +08:00
|
|
|
by dn.children="dc=example,dc=com" +d continue
|
1999-10-22 05:23:43 +08:00
|
|
|
by * stop
|
1999-07-05 14:26:26 +08:00
|
|
|
|
2004-05-13 08:18:21 +08:00
|
|
|
#access to attr=member,uniquemember dn.subtree="dc=example,dc=com"
|
2003-08-23 05:03:03 +08:00
|
|
|
access to attr=member,uniquemember
|
1998-08-09 08:43:13 +08:00
|
|
|
by dnattr=member selfwrite
|
2003-08-23 05:03:03 +08:00
|
|
|
by dnattr=uniquemember selfwrite
|
1998-08-09 08:43:13 +08:00
|
|
|
by * read
|
1999-07-05 14:26:26 +08:00
|
|
|
|
2004-05-13 08:18:21 +08:00
|
|
|
#access to attr=member,uniquemember filter="(mail=*com)" dn.subtree="dc=example,dc=com"
|
|
|
|
access to attr=member,uniquemember filter="(mail=*com)"
|
2002-03-24 09:55:11 +08:00
|
|
|
by * read
|
|
|
|
|
2004-05-13 08:18:21 +08:00
|
|
|
#access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))" dn.subtree="dc=example,dc=com"
|
|
|
|
access to filter="(|(objectclass=groupofnames)(objectClass=groupofuniquenames))"
|
2004-05-07 23:38:42 +08:00
|
|
|
by dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" =sc continue
|
2004-05-07 23:28:39 +08:00
|
|
|
by dn.regex="^cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com$" +rw stop
|
1999-10-22 05:23:43 +08:00
|
|
|
by * break
|
1999-07-05 14:26:26 +08:00
|
|
|
|
2004-05-07 23:28:39 +08: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 23:04:04 +08:00
|
|
|
by * read
|
|
|
|
|
2004-05-13 08:18:21 +08: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-02 02:58:11 +08:00
|
|
|
by * continue
|
|
|
|
|
2005-08-07 08:27:48 +08:00
|
|
|
access to dn.subtree="ou=Add & Delete,dc=example,dc=com"
|
2005-04-08 08:18:24 +08: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 13:01:31 +08:00
|
|
|
# fall into global ACLs
|
2004-07-27 04:26:52 +08:00
|
|
|
|
2005-08-07 18:01:53 +08:00
|
|
|
#monitor#database monitor
|