1

Topic: OpenLDAP 2.4 to 2.5 and BDB to MDB Migration

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.4
- Deployed with iRedMail Easy or the downloadable installer? Downloadable Installer
- Linux/BSD distribution name and version: Devuan Daedalus (Deb12)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): Apache2
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi, I am using iRedmail since the 0.x era and constantly upgraded it until latest 1.7.4. I am using Devuan for a while now and lately tried upgrading from Chiamera (Deb11) to Daedalus (Deb12) which comes with OpenLDAP 2.5 which does not support BerkeleyDB backend anymore but my LDAP config of iRedMail is still BDB.

Is there a way to easily migrate this to MDB or how can I make it work again?

Thanks for any help!

Best, Martin

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: OpenLDAP 2.4 to 2.5 and BDB to MDB Migration

Should be easy, you can export the BDB with slapcat, create a new storage directory for MDB, modify your config to use MDB instead of BDB, and import the LDIF using slapadd

I can't give you step by step instruction,s ince i didn't use LDAP for a long time and dont have a system to test, but i guess you should be able to get around it

3

Re: OpenLDAP 2.4 to 2.5 and BDB to MDB Migration

Cthulhu wrote:

Should be easy, you can export the BDB with slapcat, create a new storage directory for MDB, modify your config to use MDB instead of BDB, and import the LDIF using slapadd

This is correct.

4

Re: OpenLDAP 2.4 to 2.5 and BDB to MDB Migration

martinseener wrote:

I am using Devuan for a while now and lately tried upgrading from Chiamera (Deb11) to Daedalus (Deb12)

Just a reminder: We didn't test iRedMail on Devuan, you may experience issues and you're on your own.

5

Re: OpenLDAP 2.4 to 2.5 and BDB to MDB Migration

ZhangHuangbin wrote:
martinseener wrote:

I am using Devuan for a while now and lately tried upgrading from Chiamera (Deb11) to Daedalus (Deb12)

Just a reminder: We didn't test iRedMail on Devuan, you may experience issues and you're on your own.

Thanks for your hints. Unfortunately I am not super familiar with OpenLDAP. Can you give me any hints or tutorials I should look for? I mean sure, it's running on Devuan but on Debian i would have the same issues now. The diff is only "no-systemd" but iRedMail runs just fine otherwise. I don't want to break any ldap config.

Thank you!