Hi,
I am trying to use “first_name” and “last_name” LDAP configuration attributes according to documentation.
I cannot use “name” attribute as our AD does not contain user name in form “FirstName LastName” form in any field. As we have first name in “givenName” LDAP field and last name in “sn” LDAP field, so I would like to use “first_name” and “last_name” GitLab attributes:
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
...
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email: ['mail', 'email', 'userPrincipalName']
first_name: 'givenName'
last_name: 'sn'
But this does not work. It seems first_name and last_name are ignored, user name is filled with sAMAccountName attribute.
Any ideas?
K