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)
- Move the
sync_name
option to theservers
block. - Use the
sync_attribute?
method underapp/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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Zehua Zhang