Hello. We have a company where users often change business units. With change of business unit he also changes email. After doing that and loging in with LDAP gitlab creates new user as he doesn’t find his email. Is there some solution? Is there a way for Gitlab to check existing user with userPrincipalName field from LDAP, as userPrincipalName never changes and stays the same even after change of business unit and email.
Is the answer maybe in gitlab ldap config as stated in documentation:
attributes:
# The username will be used in paths for the user’s own projects
# (like gitlab.example.com/username/project
) and when mentioning
# them in issues, merge request and comments (like @username
).
# If the attribute specified for username
contains an email address,
# the GitLab username will be the part of the email address before the ‘@’.
username: [‘uid’, ‘userid’, ‘sAMAccountName’]
email: [‘mail’, ‘email’, ']
What is the correct setting?
BR Denis