Commit 85a15b0e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7152 from bhuisgen/master

Fix LDAP TLS authentication
parents 7bd9a702 bac7d17c
......@@ -14,7 +14,15 @@ module Gitlab
end
def self.adapter_options
encryption = config['method'].to_s == 'ssl' ? :simple_tls : nil
encryption =
case config['method'].to_s
when 'ssl'
:simple_tls
when 'tls'
:start_tls
else
nil
end
options = {
host: config['host'],
......
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