--On Sunday, December 20, 2020 11:21 AM -0700 Pete Ashdown pashdown@xmission.com wrote:
I'm looking for some assistance in converting a legacy LDAP from an HDB backend to MDB. I've been unable to find any resources in how this can be executed and my attempts at using ldapmodify have failed. I'm willing to pay consulting fees if someone is available to help, or otherwise be educated if is documented somewhere.
Converting from HDB to MDB is fairly trivial.
a) slapcat any existing HDB backed database backends to ldif
b) If using cn=config for the database configuration, slapcat the config db to ldif (slapcat -n 0 -F /path/to/slapd.d -l config.ldif; mv /path/to/slapd.d /path/to/slapd.d.hdb; mkdir -p /path/to/slapd.d; chown /path/to/slapd.d appropriately)
c) Modify config.ldif to use mdb instead of hdb:
change any instances of "hdb" to mdb" remove any back-hdb specific configuration items Add an olcdbmaxsize for back-mdb in the mdb databse configuration section. Note that this is intended to be a very large value that should never be reached. It is not meant to be a small value that you guestimate is around the approximate database size
d) Import the modified config.ldif via slapadd
e) slapadd the former HDB databases
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com