Skip to content
代码片段 群组 项目
提交 85a15b0e 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

Merge pull request #7152 from bhuisgen/master

Fix LDAP TLS authentication
No related branches found
No related tags found
无相关合并请求
...@@ -14,7 +14,15 @@ def self.config ...@@ -14,7 +14,15 @@ def self.config
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'],
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册