Skip to content

Commit f71769f

Browse files
authored
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
1 parent 3a623ac commit f71769f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/entitlements/service/ldap.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,6 @@ def ldap
239239
verify_mode: @disable_ssl_verification ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
240240
}
241241
}
242-
else
243-
ldap_options[:encryption] = { method: nil }
244242
end
245243

246244
if @ca_file && ldap_options[:encryption].key?(:tls_options)

0 commit comments

Comments
 (0)