Skip to content

Fix the bug of LDAP sync_name option

What does this MR do and why?

Related to issue #11336 (closed) Related to note !110628 (comment 1280345661)

  1. Move the sync_name option to the servers block.
  2. Use the sync_attribute? method under app/models/user.rb to control whether the LDAP user name is synchronized to the GitLab user.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Zehua Zhang

Merge request reports