Searched username transformation

Add a configurable way to do transformation on the username before
searching it in the LDAP.