--On Monday, June 12, 2023 6:14 PM +0200 cYuSeDfZfb cYuSeDfZfb cyusedfzfb@gmail.com wrote:
Some more (perhaps relevant?) backgroup info.
These four servers have recently (last week) been struck by corruption of the underlying .dbd files. In order to get things working again, we did on all four servers:
- stop slapd
- slapcat > temp.ldif
- remove /var/lib/ldap/* (except DB_CONFIG)
- slapadd -n 2 -l temp.ldif
I would generally suggest using -q with slapadd as well here.
- chown ldap:ldap /var/lib/ldap/*
- chown root:root /var/lib/ldap/DB_CONFIG
- start slapd
Perhaps this background info is relevant..?
It appears you are using the historic back-hdb or back-bdb backend to OpenLDAP. These backends are particularly susceptible to corruption. You should migrate to using the supported backend (back-mdb). You should also upgrade to a supported release series (2.5 or 2.6) as 2.4 hasn't been supported for a few years.
Regards, Quanah