LDAP - first_name and last_name ignored?

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

Isn’it related to https://gitlab.com/gitlab-org/gitlab-ce/issues/35311?

Hi,

related MR (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13054) fixed “username” and “email” attributes fulfillment. “first_name” and “last_name” seems to be still ignored. :frowning:

K