Symas employee?Sign in

← Knowledge Base

Installation → Configuration

HDB to MDB Conversion

Date: 17-11-2015

Why Convert?

Migrating from HDB (Berkeley DB) to MDB (Lightning Memory-Mapped Database) in OpenLDAP is recommended because MDB is the preferred and default backend for OpenLDAP, offering superior performance and is actively supported, unlike HDB which is deprecated. 

How To Convert

Conversion is made in the slapd.conf file. Edit /opt/symas/etc/openldap/slapd.conf and make the following changes:

1. Change references to hdb in the module load and database sections
2. Comment out (#) the following: 

  1. Cachesize 
  2. Idlcachesize 
  3. Checkpoint

3. Beneath the commented out Checkpoint entry add the following line: 

Maxsize 10485760

Equals 10 MB. Increase to 104857600 which equals 100 MB for larger databases.

4. Save the slapd.conf file 
5. Test the slapd.conf file

sudo slaptest -v -f /opt/symas/etc/openldap/slapd.conf 

6. Restart slapd

 systemctl slapd restart