Changed to use username as username (prefix for email is not alway the ldap username). Added more config values to simplify configuration of different ldap layouts