xref: /netbsd-src/external/bsd/openldap/dist/tests/data/slapd-limits.conf (revision e670fd5c413e99c2f6a37901bb21c537fcd322d2)
1# provider slapd config -- for testing
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2021 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.1.pid
23argsfile	@TESTDIR@/slapd.1.args
24
25#mod#modulepath	../servers/slapd/back-@BACKEND@/
26#mod#moduleload	back_@BACKEND@.la
27
28#######################################################################
29# database definitions
30#######################################################################
31
32database	@BACKEND@
33suffix		"dc=example,dc=com"
34rootdn		"cn=Manager,dc=example,dc=com"
35rootpw		secret
36#~null~#directory	@TESTDIR@/db.1.a
37
38# Need quality indices on "uid" to check "unchecked" limits...
39#indexdb#index		objectClass eq
40#indexdb#index		uid eq
41#ndb#dbname db_1
42#ndb#include @DATADIR@/ndb.conf
43
44# Need extra limits for pagedResults on backends that support it...
45#maindb#limits	dn.exact="cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=unlimited
46#maindb#limits	dn.exact="cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=4
47#maindb#limits	dn.exact="cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=disabled
48#maindb#limits	dn.exact="cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=10
49
50limits	dn.exact="cn=Unlimited User,ou=People,dc=example,dc=com" size=unlimited time=unlimited
51limits	dn.exact="cn=Soft Limited User,ou=People,dc=example,dc=com" size.soft=4 size.hard=unlimited
52limits	dn.exact="cn=Hard Limited User,ou=People,dc=example,dc=com" size.soft=4 size.hard=8
53limits	dn.exact="cn=Unchecked Limited User,ou=People,dc=example,dc=com" size.unchecked=4
54limits	group="cn=Unchecked Limited Users,ou=Groups,dc=example,dc=com" size.unchecked=4
55limits	dn.regex="^cn=Foo User,ou=[^,]+,dc=example,dc=com$" size.soft=6
56limits	dn.onelevel="ou=People,dc=example,dc=com" size.soft=5
57limits	dn.children="ou=Groups,dc=example,dc=com" size.soft=4
58limits	dn.subtree="ou=Admin,dc=example,dc=com" size.soft=3
59limits	users size.soft=2
60limits	anonymous size.soft=1
61
62database	monitor
63