how to configure ldap-rewrite and test it