From Secure Computing Wiki
Revision as of 10:06, 17 April 2010 by Tom (Talk | contribs) (typo)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NOTICE: This page is a stub from OpenLDAP
OpenLDAP with a bdb back end requires a DB_CONFIG for optimum performance. This file exists in /usr/local/etc/openldap/DB_CONFIG.example. You can simply copy this file to your LDAP directory's base directory. In our setup, that file should be placed in /var/db/

The contents of this file are as follows:

# $OpenLDAP: pkg/ldap/servers/slapd/DB_CONFIG,v 2007/08/31 23:13:57 quanah Exp $
# Example DB_CONFIG file for use with slapd(8) BDB/HDB databases.
# See Sleepycat Berkeley DB documentation
#   <>
# for detail description of DB_CONFIG syntax and semantics.
# Hints can also be found in the OpenLDAP Software FAQ
#	<>
# in particular:
#   <>

# Note: most DB_CONFIG settings will take effect only upon rebuilding
# the DB environment.

# one 0.25 GB cache
set_cachesize 0 268435456 1

# Data Directory
#set_data_dir db

# Transaction Log settings
set_lg_regionmax 262144
set_lg_bsize 2097152
#set_lg_dir logs

# Note: special DB_CONFIG flags are no longer needed for "quick"
# slapadd(8) or slapindex(8) access (see their -q option).