Commit a48fffc4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix ldap adapter for ssl connection

parent 860a80ea
......@@ -10,17 +10,20 @@ module Gitlab
attr_reader :ldap
def initialize
encryption = config['method'].to_s == 'ssl' ? :simple_tls : nil
options = {
host: config['host'],
port: config['port'],
encryption: encryption
}
auth_options = {
auth: {
method: config['method'],
username: config['bind_dn'],
password: config['password']
}
method: :simple,
username: config['bind_dn'],
password: config['password']
}
}
if config['password'] || config['bind_dn']
......
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