cubicweb/server/test/data/slapd.conf.in
author Philippe Pepiot <ph@itsalwaysdns.eu>
Tue, 31 Mar 2020 18:22:05 +0200
changeset 12966 6cd938c29ca3
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[server] Make connection pooler configurable and set better default values Drop the configuration connections-pool-size and add new configurations options: * connections-pool-min-size. Set to 0 by default so we open connections only when needed. This avoid opening min-size*processes connections at startup, which is, it think, a good default. * connections-pool-max-size. Set to 0 (unlimited) by default, so we move the bottleneck to postgresql. * connections-idle-timeout. Set to 10 minutes. I don't have arguments about this except that this is the default in pgbouncer.

# This is the main slapd configuration file. See slapd.conf(5) for more
# info on the configuration options.

#######################################################################
# Global Directives:

# Features to permit
#allow bind_v2

# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema
include         /etc/ldap/schema/openldap.schema
include         /etc/ldap/schema/misc.schema

# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile         %(apphome)s/test-slapd.pid

# List of arguments that were passed to the server
argsfile        %(apphome)s/slapd.args

# Read slapd.conf(5) for possible values
loglevel        sync
# none

# Where the dynamically loaded modules are stored
modulepath	/usr/lib/ldap
moduleload	back_hdb
moduleload	back_bdb
moduleload      back_monitor

# The maximum number of entries that is returned for a search operation
sizelimit 500

# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
tool-threads 1

database        bdb

# The base of your directory in database #1
suffix          "dc=cubicweb,dc=test"

# rootdn directive for specifying a superuser on the database. This is needed
# for syncrepl. and ldapdelete easyness
rootdn          "cn=admin,dc=cubicweb,dc=test"
rootpw          "cw"
# Where the database file are physically stored for database #1
directory       "%(testdir)s"