Fix LDAP TLS authentication
This commit is contained in:
parent
67934145e8
commit
bac7d17c7b
1 changed files with 9 additions and 1 deletions
|
@ -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…
Reference in a new issue