From 64a8240ae0f7c0f10331a68d4aa1ac671f7681ae Mon Sep 17 00:00:00 2001 From: blackhedd Date: Mon, 7 May 2007 03:43:32 +0000 Subject: [PATCH] Bugfix. Net::LDAP#bind was ignoring the inbound auth parameter. Thanks to Kouhei Sutou for spotting this and pointing it out. --- ChangeLog | 3 ++- lib/net/ldap.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 02fc839..41c2c16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,7 +36,8 @@ LDAP SearchRequest packets. * Added Net::LDAP::Filter#execute, which allows arbitrary processing based on LDAP filters. - +* Fixed bug in Net::LDAP#bind. We were ignoring the passed-in auth parm. + Thanks to Kouhei Sutou for spotting it. == Net::LDAP 0.0.4: August 15, 2006 * Undeprecated Net::LDAP#modify. Thanks to Justin Forder for diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index 437938c..c9b76d4 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -727,7 +727,7 @@ module Net @result = @open_connection.bind auth else conn = Connection.new( :host => @host, :port => @port , :encryption => @encryption) - @result = conn.bind @auth + @result = conn.bind auth conn.close end