We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd78782 commit acffb16Copy full SHA for acffb16
lib/net/ldap/connection.rb
@@ -45,6 +45,9 @@ def self.wrap_with_ssl(io, tls_options = {})
45
raise Net::LDAP::LdapError, "OpenSSL is unavailable" unless Net::LDAP::HasOpenSSL
46
47
ctx = OpenSSL::SSL::SSLContext.new
48
+
49
+ # By default, we do not verify certificates. For a 1.0 release, this should probably be changed at some point.
50
+ # See discussion in https://github.com/ruby-ldap/ruby-net-ldap/pull/161
51
ctx.set_params(tls_options) unless tls_options.empty?
52
53
conn = OpenSSL::SSL::SSLSocket.new(io, ctx)
0 commit comments