Commit a48fffc4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix ldap adapter for ssl connection

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