Update ldap.rb to allow LDAP and not LDAPS access
The code was failing because ``` vendor/gems/ruby/3.1.0/gems/net-ldap-0.17.1/lib/net/ldap/connection.rb:72:in `open_connection': unsupported encryption method (Net::LDAP::Error) ``` The "nil" encryption method doesn't exist, to not use encryption, we can just omit the `encryption` parameter
This commit is contained in:
Родитель
3a623ac8a7
Коммит
f71769fc06
|
@ -239,8 +239,6 @@ module Entitlements
|
|||
verify_mode: @disable_ssl_verification ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
|
||||
}
|
||||
}
|
||||
else
|
||||
ldap_options[:encryption] = { method: nil }
|
||||
end
|
||||
|
||||
if @ca_file && ldap_options[:encryption].key?(:tls_options)
|
||||
|
|
Загрузка…
Ссылка в новой задаче