Commit 71c36c5b authored by Michael Kozono's avatar Michael Kozono

Add warning about certificate verification on load

parent 72d8b1e4
......@@ -153,7 +153,16 @@ if Settings.ldap['enabled'] || Rails.env.test?
# Certificates are not verified for backwards compatibility.
# This default should be flipped to true in 9.5.
server['verify_certificates'] = false if server['verify_certificates'].nil?
if server['verify_certificates'].nil?
server['verify_certificates'] = false
message = <<-MSG.strip_heredoc
LDAP SSL certificate verification is disabled for backwards-compatibility.
Please add the "verify_certificates" option to gitlab.yml for each LDAP
server. Certificate verification will be enabled by default in GitLab 9.5.
MSG
Rails.logger.warn(message)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment