move LDAP compilation to the backend