Gitlab LDAP pinned to email, not uid

Summary

Gitlab does use the email adress of LDAP accounts for login. If you got two accounts, i.e. one for admin usage called "user-a" and a normal user account called just "user" which have both the same email adress, gitlab will always try to login as the "user" account, even if tried to login with the "user-a" account.

Steps to reproduce

Setup both accounts in LDAP and tested, the "user-a" account cannot login / login with the "user-a" account ends up being logged into the "user" account

Example Project

Not possible here

What is the current bug behavior?

See above

What is the expected correct behavior?

Being able to login with "user" and "user-a" and have two different accounts in gitlab WITHOUT needing to change the email adress in one of the accounts.

Relevant logs and/or screenshots

N/A

Output of checks

N/A

Results of GitLab environment info

N/A

Results of GitLab application Check

N/A

Possible fixes

N/A