Hi,
On 24/06/14 16:31, Dominik George wrote:
Of course, you have a slapcat backup Form yesterday, so just remove the stuff and slapadd, right ;)? -nik
(If you don't have a backup... ) ...depending on your operating system and OpenLDAP version installed, you should have on your system a tool called db<version>_recover
e.g.: db5.1_recover, db4.8_recover and so on.
(from the man page:) "db5.1_recover - Restore the database to a consistent state
The db5.1_recover utility must be run after an unexpected application, Berkeley DB, or system failure to restore the database to a consistent state. All committed transactions are guaranteed to appear after db5.1_recover has run, and all uncommitted transactions will be completely undone."
Be sure to make a backup copy of your db before running it, and that the version of the db utilities that you are running matches your BDB version (I haven't tried to recover it using different utilities/db version).
If you manage to restore your db, make sure you perform regular backups and that you have at least 1 slapd replica running.... they can both help you to restore the system in such situations :)
Kind Regards, Alessandro