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