# $Id: slapd.conf.tmpl,v 1.4 2005/10/25 10:18:19 yru Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include		/etc/openldap/schema/core.schema
include		/etc/openldap/schema/cosine.schema
include		/etc/openldap/schema/nis.schema
include		/etc/openldap/schema/inetorgperson.schema
include		/etc/openldap/schema/qmail.schema
include		/etc/openldap/schema/messaging_core.schema
include		/etc/openldap/schema/pma-multimail.schema
include		/etc/openldap/schema/addressBook.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral	ldap://root.openldap.org

pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args

allow bind_v2

loglevel	0

# Load dynamic backend modules:
modulepath	/usr/libexec/openldap
moduleload	back_bdb.la
moduleload	back_monitor.la
moduleload	syncprov.la
#moduleload	back_ldap.la
# moduleload	back_ldbm.la
# moduleload	back_passwd.la
# moduleload	back_shell.la

# Sample security restrictions
#
#   Disallow clear text exchange of passwords
# disallow bind_simple_unprotected
#
#	Require integrity protection (prevent hijacking)
#	Require 112-bit (3DES or better) encryption for updates
#	Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#	Allow read access of root DSE
#	Allow self write access
#	Allow authenticated users read access
#	Allow anonymous users to authenticate
# Directives needed to implement policy:
#access to dn.base="" by * read
#
# if no access controls are present, the default policy is:
#	Allow read by all
#
# rootdn can always write!

#######################################################################
# Global access definitions
#######################################################################
#######################################################################
# bdb1 database definitions
#######################################################################
database	bdb
suffix		"ou=CONTENT,o=domain,c=fr"
rootdn		"cn=admin,ou=CONTENT,o=domain,c=fr"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw		secret
# The database directory MUST exist prior to running slapd AND 
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory	/var/openldap-data/bdb1
#checkpoint 10000 60 => Attention aux perf, adapter tuning Berkeley DB
# Indices to maintain
index userid,pnnumber,submxid,maillogin,abookaliasid eq,pres
index objectClass eq
index entryCSN,entryUUID eq
#
cachesize       10000
dncachesize     4000000
idlcachesize    10000
cachefree       10

# Replica for HA Heartbeat+Replication: CONTENT
overlay syncprov
# contextCSN saved to database every 1000 updates or thirty minutes
syncprov-checkpoint 10000 120
syncprov-sessionlog 100000

#######################################################################
# bdb2 database definitions
#######################################################################
database	bdb
suffix		"ou=INDEXES,o=domain,c=fr"
rootdn		"cn=admin,ou=INDEXES,o=domain,c=fr"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw		secret
# The database directory MUST exist prior to running slapd AND 
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory	/var/openldap-data/bdb2
#checkpoint 10000 60 => Attention aux perf, adapter tuning Berkeley DB
# Indices to maintain
index weblogin,maillogin,mail,pnnumber eq,pres
index profileid,loginname eq,pres
index objectClass eq
index entryCSN,entryUUID eq
#
cachesize       10000
dncachesize     4000000
idlcachesize    10000
cachefree       10

# Replica for HA Heartbeat+Replication: INDEXES
overlay syncprov
# contextCSN saved to database every 1000 updates or thirty minutes
syncprov-checkpoint 10000 120
syncprov-sessionlog 100000
#######################################################################
# monitor database definitions
#######################################################################
database        monitor
