https://bugs.openldap.org/show_bug.cgi?id=10253
--- Comment #1 from Ryan Tandy ryan@openldap.org --- I uploaded a patch for this to Debian unstable:
https://salsa.debian.org/openldap-team/openldap/-/blob/2.5.18+dfsg-3/debian/...
I'll open a PR in a few days if I don't get any bug reports about it.