openldap-software May 2010 archive
Main Archive Page > Month Archives  > openldap-software archives
openldap-software: Re: cn=config and DB_CONFIG

Re: cn=config and DB_CONFIG

From: Howard Chu <hyc_at_nospam>
Date: Thu May 20 2010 - 07:31:54 GMT
To: Hallvard B Furuseth <>

Hallvard B Furuseth wrote:
> DT Piotr Wadas writes:
>> Is it possible with openldap, any version, to tune DB_CONFIG attributes
>> for selected context via cn=config ?
> Yes. See the admin guide and the slapd-bdb(8) manpage, keyword
> dbconfig. The cn=config attribute is called olcDbConfig. Note that
> "The options set using this directive will only be written to the
> DB_CONFIG file if no such file existed at server startup time"
> Come to think of it, I don't know what happens if you modify an existing
> database's DB_CONFIG; I've only used it with empty database directories.

If you ldapmodify via cn=config the DB environment will be closed and
re-opened to make the new settings take effect.

-- -- Howard Chu CTO, Symas Corp. Director, Highland Sun Chief Architect, OpenLDAP