Custom fields_mapping for LDAP authentification


I’m trying to customize the filds mapping to hide the last name of my users.

Is it possible to modify the “last_name” information to get only the first letter of the last name?

I would like to do:
John Smith → JohnS


Is this possible to do?

Not currently no, it only supports simple xwikifield=ldapfield syntax right now. We would ideally need to add support for the same syntax we have in xwiki.authentication.ldap.userPageName for example.

Indeed it would be a good idea to customize the fields.

Thanks for your feedback.