Hello,
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
xwiki.authentication.ldap.fields_mapping=“last_name=sn,first_name=givenName”
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.
xwiki.authentication.ldap.userPageName
Indeed it would be a good idea to customize the fields.
Thanks for your feedback.