bearded / ruby-ldap

Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
http://rubyforge.org/projects/ruby-ldap/
Other
66 stars 35 forks source link

Support LDAP_OPT_X_TLS_NEWCTX #43

Closed kou closed 6 years ago

kou commented 6 years ago

It's needed for setting StartTLS related options in GnuTLS backend:

connection = LDAP::Conn.new(host, port)
connection.set_option(LDAP::LDAP_OPT_X_TLS_REQUIRE_CERT,
                      LDAP::LDAP_OPT_X_TLS_NEVER)
connection.set_option(LDAP::LDAP_OPT_X_TLS_NEXCTX, 1) # This is needed
connection.start_tls
bearded commented 6 years ago

Thank you @kou, version 0.9.20 is released ❤️

kou commented 6 years ago

Wow! You're super fast!