Good day,
We are using LDAP authentication and synchonizing XWiki users with the LDAP directory (Active Directory), which works very nicely.
We are mapping LDAP attributes as follows:
xwiki.authentication.ldap.UID_attr=sAMAccountName xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,display_name=displayName,email=mail
Some users have two accounts: A non-administrator account and an administrator account. The sn
(last name) and givenName
(first name) LDAP attributes are the same for both accounts.
This means that when I look up users in XWiki, I will see two entries for that person: One of the entries is the non-administrator account, and the other is the administrator account. Example:
Since both accounts have the same first and last name, it is not possible to distinguish between them.
Question: How can I change this search display to use display_name
(I extended XWikiUsers
class and added it) property instead of first and last name?