https://bugs.openldap.org/show_bug.cgi?id=9261
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to matthew.slowe from comment #2)
a) OpenLDAP 2.4.44 is 3 years old. b) back-hdb is deprecated
Do you know, therefore, if this behaviour is not present in more recent version? It's "current" in the RHEL/CentOS 7 platform and, probably, in widespread use.
It is advised by the project to use current builds, particularly on RedHat. As I noted, back-hdb is deprecated and will be removed for OpenLDAP 2.5. For OpenLDAP 2.4, back-mdb is the recommended backend. No issues with back-hdb are likely to be investigated.
Current builds of OpenLDAP that function as a drop in replacement on RH7 are freely available from https://repo.symas.com/sofl/rhel7/
Alternatively, the LTB project provides current openldap builds as well (https://ltb-project.org/documentation/openldap-rpm#yum_repository)
My general advice would be to (a) install a current version of OpenLDAP and (b) migrate off of back-hdb to back-mdb.