https://bugs.openldap.org/show_bug.cgi?id=6740
--- Comment #8 from Ryan Tandy ryan@openldap.org --- (In reply to Quanah Gibson-Mount from comment #6)
Note: The --enable-rewrite flag literally has no effect, since BUILD_REWRITE is not honored anywhere as it is.
Maybe not in the build system, but the ENABLE_REWRITE and SLAP_AUTH_REWRITE defines in the code are fully respected.