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.
Thanks in advance.
I think you also need a bit of help with your spam setup ;)
<<< 550-XM-RJCT22: [212.26.193.44] is prohibited from connecting to XMission mail <<< 550-servers due to high spam volume. See the following for more information:
This server is not even sending out that many mails.
-----Original Message----- From: Pete Ashdown [mailto:pashdown@xmission.com] Sent: 20 December 2020 19:22 To: openldap-technical@openldap.org Subject: Migrate HDB to MDB
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.
Thanks in advance.
--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
Thank you for the help. The cn=config portion was what was tripping me up.
On 12/20/20 3:06 PM, Quanah Gibson-Mount wrote:
--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
openldap-technical@openldap.org