https://bugs.openldap.org/show_bug.cgi?id=9000
--- Comment #8 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to sebastien.chaumat from comment #7)
This bug is still present in 2.4.49 (ubuntu).
The OpenLDAP 2.4 series is historic and out of support.
The memberof overlay is deprecated in OpenLDAP 2.5 and later and the dynlist overlay should be used to provide memberOf support.