LDAP mail attribute misstake

Hello there,

i’ve just reconfigured a GitLab CE server and adding LDAP for authentication.
The sign in works well but, the mail attribute isn’t read by gitlab. User is stuck on its profil page in a result.

Whereas mail attribute is a standard attribute and you tell in the documentation that’s read by gitlab.

gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
  main: # 'main' is the GitLab 'provider ID' of this LDAP server
    label: 'LDAP'
    host: 'trinity.momcards.fr'
    port: 389
    uid: 'uid'
    method: 'plain' # "tls" or "ssl" or "plain"
    bind_dn: 'cn=******,dc=momcards,dc=fr'
    password: '******'
    active_directory: false
    allow_username_or_email_login: true
    base: 'ou=users,dc=momcards,dc=fr'
    user_filter: ''
EOF

LDAP user record :

> version: 1

> dn: cn=elfaus,ou=users,dc=momcards,dc=fr
> objectClass: posixAccount
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> cn: elfaus
> gidNumber: 12421
> homeDirectory: /home/elfaus
> sn: LEUILLIOT
> uid: elfaus
> uidNumber: 50001
> displayName:: TG/Dr2MgTEVVSUxMSU9U
> givenName:: TG/Dr2M=
> initials: LL
> mail: elfaus@momcards.fr
> mobile: 0683798754
> userPassword:: *****
>  Q==

When I logged in :

temp-email-for-oauth-elfaus@gitlab.localhost

Ok,

i’ve remove the user from gitlab dashboard and log in again and it works. It seems data will not be updated after LDAP edition.