HDB to MDB Conversion
Learn how to convert HDB files to MDB format easily and efficiently with step-by-step instructions and helpful tips.
Table of Contents
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:
- Cachesize
- Idlcachesize
- 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