Skip to content
Snippets Groups Projects
Commit bac7d17c authored by Boris HUISGEN's avatar Boris HUISGEN
Browse files

Fix LDAP TLS authentication

parent 67934145
No related branches found
No related tags found
No related merge requests found
Loading
@@ -14,7 +14,15 @@ module Gitlab
Loading
@@ -14,7 +14,15 @@ module Gitlab
end end
   
def self.adapter_options 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 = { options = {
host: config['host'], host: config['host'],
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment