Fix LDAP TLS authentication
This commit is contained in:
parent
67934145e8
commit
bac7d17c7b
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue