Skip to content

Instantly share code, notes, and snippets.

@mbbx6spp
mbbx6spp / cleanup-openldap.sh
Created October 5, 2010 19:48
Script to cleanup screwed up OpenLDAP installation. Seems to work after seeing following errors: bdb_db_open: database "dc=yourdomain,dc=local": db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2). backend_startup_one (type=bdb, suf
#!/usr/bin/env bash
# Appears to fix the following errors when running slaptest:
# bdb_db_open: database "dc=yourdomain,dc=local": db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2).
# backend_startup_one (type=bdb, suffix="dc=yourdomain,dc=local"): bi_db_open failed! (2)
# Assumes you have customized the following configuration files:
# - /etc/openldap/slapd.conf
# - /etc/openldap/ldap.conf