Blame SOURCES/UPGRADE_INSTRUCTIONS

976c7e
You have upgraded your openldap-servers package.
976c7e
Any major version upgrade can cause database corruption or loss.
976c7e
Please, make sure that you have up-to-date back up and read this document carefully.
976c7e
976c7e
It's still recommended to do the backup even on the minor version upgrade.
976c7e
976c7e
Please, review the next links before performing any action:
976c7e
976c7e
Upgrading from 2.4.x - https://www.openldap.org/doc/admin25/appendix-upgrading.html
976c7e
Upgrading from 2.5.x - https://www.openldap.org/doc/admin26/appendix-upgrading.html
976c7e
The normal upgrade procedure - https://www.openldap.org/doc/admin26/maintenance.html
976c7e
976c7e
Additionally, please, review and perform the following steps that can help you with the upgrade:
976c7e
976c7e
         1. Back up both data and configuration directories into a safe place;
976c7e
         2. Export data to an LDIF file using slapcat;
976c7e
a. If you have the deprecated DB type and you haven't performed the slapcat command, you need to move your data and configuration to the system with OpenLDAP 2.4 version and run slapcat command there;
976c7e
         3. Change the server's configuration according to the changes in the above documents;
976c7e
          a. If you are replacing the BDB/HDB with MDB, make sure to replace the BDB/HDB sections with their MDB counterparts;
976c7e
4. Clear out the current data directory;
976c7e
         5. Import data to a new database from the LDIF file using slapadd;
976c7e
         6. Make sure that your data is intact.
976c7e
976c7e
After you have completed the above operations, you can remove this file (/usr/share/openldap-servers/UPGRADE_INSTRUCTIONS) and start the server:
976c7e
976c7e
        systemctl start slapd.service
976c7e
976c7e
Be careful with this document's procedure, make sure you understand it, and test it in a non-production environment first. Always make sure that all backups are in place.
976c7e
976c7e
You have been warned about the possibility of data corruption or loss.