Hello, openldap.org community!
This is my first thread here, in the hopes of finding a better understanding of a problem I'm having with OpenLDAP after several hours of unsuccessful troubleshooting. I'm in no way an expert on the matter so maybe someone more experienced here could help me get things a bit clearer.
I recently found this issue in two Ubuntu 18.04 servers I'm running with OpenLDAP 2.4 and bdb backend for their databases.
I want to export my LDAP database to an LDIF file by running:
# slapcat -l database.ldif
This works just fine. However, I realized every time I run such slapcat command, my slapd.log file gets truncated (i.e. all previous log entries are deleted).
This happens on both servers, no matter if the slapd daemon is running or not.
I don't know if this is normal or expected behavior, but it is weird to me that slapcat is wiping the log files. From what I understood slapd is in charge of the logging, so why is slapcat messing with that?
Is this just normal/expected behavior, or am I experiencing some kind of weird issue here?