1 min read 62 words Updated May 09, 2026 Created May 09, 2026

OpenLDAP

Here is how to start the slapd daemon in full debug mode on FreeBSD

/usr/local/libexec/slapd -d-1 -u ldap -g ldap

DB_CONFIG error (fairly common)

sudo /etc/init.d/ldap restart

Checking configuration files for slapd: bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)

Fix (could be specific to CentOS/Red Hat...?

cp /etc/openldap/DB\_CONFIG.example /var/lib/ldap/DB\_CONFIG