Skip to content
Snippets Groups Projects
Commit 85a15b0e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #7152 from bhuisgen/master

Fix LDAP TLS authentication
parents 7bd9a702 bac7d17c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
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