xref: /netbsd-src/external/bsd/openldap/dist/tests/data/slapd-proxyauthz.conf (revision 9fd8799cb5ceb66c69f2eb1a6d26a1d587ba1f1e)
1# proxy cache slapd config -- for testing
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2020 The OpenLDAP Foundation.
6## All rights reserved.
7##
8## Redistribution and use in source and binary forms, with or without
9## modification, are permitted only as authorized by the OpenLDAP
10## Public License.
11##
12## A copy of this license is available in the file LICENSE in the
13## top-level directory of the distribution or, alternatively, at
14## <http://www.OpenLDAP.org/license.html>.
15
16include		@SCHEMADIR@/core.schema
17include		@SCHEMADIR@/cosine.schema
18include		@SCHEMADIR@/inetorgperson.schema
19include		@SCHEMADIR@/openldap.schema
20include		@SCHEMADIR@/nis.schema
21
22pidfile		@TESTDIR@/slapd.2.pid
23argsfile	@TESTDIR@/slapd.2.args
24
25#mod#modulepath	../servers/slapd/back-@BACKEND@/
26#mod#moduleload	back_@BACKEND@.la
27#ldapmod#modulepath	../servers/slapd/back-ldap/
28#ldapmod#moduleload	back_ldap.la
29#monitormod#modulepath ../servers/slapd/back-monitor/
30#monitormod#moduleload back_monitor.la
31#pcachemod#modulepath ../servers/slapd/overlays/
32#pcachemod#moduleload pcache.la
33
34
35#######################################################################
36# database definitions
37#######################################################################
38
39database	ldap
40suffix          "dc=example,dc=com"
41rootdn          "dc=example,dc=com"
42rootpw		"secret"
43uri		"@URI1@"
44
45limits		dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" size=1
46
47idassert-bind bindmethod=simple binddn="cn=Manager,dc=example,dc=com" credentials="secret"
48  mode=self authz=proxyauthz flags="override"
49
50idassert-authzFrom  "dn.children:dc=example,dc=com"
51
52#authz=proxyauthz
53
54overlay		pcache
55pcache	@BACKEND@ 100 2 @ENTRY_LIMIT@ @CCPERIOD@
56pcacheattrset 0  	sn cn title uid
57pcacheattrset 1  	mail postaladdress telephonenumber cn uid
58pcachetemplate   	(|(cn=)(sn=)) 0 @TTL@ @NTTL@ @STTL@
59pcachetemplate   	(sn=) 0 @TTL@ @NTTL@ @STTL@
60pcachetemplate   	(uid=) 1 @TTL@ @NTTL@ @STTL@
61pcachetemplate   	(mail=) 0 @TTL@ @NTTL@ @STTL@
62pcachetemplate   	(&(objectclass=)(uid=)) 1 @TTL@ @NTTL@ @STTL@ @TTR@
63pcachetemplate   	(cn=) 0 86400 86400 86400 180
64
65pcachebind		(cn=) 0 3600 sub ou=people,dc=example,dc=com
66
67#bdb#cachesize 20
68#hdb#cachesize 20
69#bdb#dbnosync
70#hdb#dbnosync
71#mdb#dbnosync
72
73#~null~#directory	@TESTDIR@/db.2.a
74#indexdb#index		objectClass	eq
75#indexdb#index		cn,sn,uid,mail	pres,eq,sub
76#ndb#dbname db_2
77#ndb#include @DATADIR@/ndb.conf
78
79#monitor#database	monitor
80