Fix ldap adapter for ssl connection

This commit is contained in:
Dmitriy Zaporozhets
2013-08-16 14:55:52 +03:00
parent 860a80ea57
commit a48fffc4db
+7 -4
View File
@@ -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']