Skip to content

Commit 2546e35

Browse files
committed
Instantiate AuthAdapter in #bind
1 parent 9c7b1af commit 2546e35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/ldap/connection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ def bind(auth)
251251
instrument "bind.net_ldap_connection" do |payload|
252252
payload[:method] = meth = auth[:method]
253253
require "net/ldap/auth_adapters/#{meth}"
254-
adapter = Net::LDAP::AuthAdapterp[meth]
255-
adapter.bind(auth)
254+
adapter = Net::LDAP::AuthAdapter[meth]
255+
adapter.new(self).bind(auth)
256256
# if [:simple, :anonymous, :anon].include?(meth)
257257
# bind_simple auth
258258
# elsif meth == :sasl

0 commit comments

Comments
 (0)