diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 09:01:53 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 09:01:53 +0000 |
commit | a47a6d6fd56f92497b164d45ff9b53023202c4b1 (patch) | |
tree | fdbfbee5e51865b3a43749dbbdf0d03047001ed7 /config | |
parent | 616d6dc767ba33148a11768f3d73504368897ee9 (diff) | |
download | gitlab-ce-a47a6d6fd56f92497b164d45ff9b53023202c4b1.tar.gz |
Add latest changes from gitlab-org/gitlab@15-10-stable-ee
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/1_settings.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 9cb1be45b68..35931a3caaa 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -27,7 +27,6 @@ end # backwards compatibility, we only have one host if Settings.ldap['enabled'] || Rails.env.test? - Settings.ldap['sync_name'] = true if Settings.ldap['sync_name'].nil? if Settings.ldap['host'].present? # We detected old LDAP configuration syntax. Update the config to make it # look like it was entered with the new syntax. @@ -68,6 +67,8 @@ if Settings.ldap['enabled'] || Rails.env.test? # `ssl_version` in favor of `tls_options` hash option. server['tls_options'] ||= {} + server['sync_name'] = true if server['sync_name'].nil? + if server['ssl_version'] || server['ca_file'] Gitlab::AppLogger.warn 'DEPRECATED: LDAP options `ssl_version` and `ca_file` should be nested within `tls_options`' end |