Bugfix. Net::LDAP#bind was ignoring the inbound auth parameter.

Thanks to Kouhei Sutou for spotting this and pointing it out.
This commit is contained in:
blackhedd 2007-05-07 03:43:32 +00:00
parent 1b568e82df
commit 64a8240ae0
2 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,8 @@
LDAP SearchRequest packets. LDAP SearchRequest packets.
* Added Net::LDAP::Filter#execute, which allows arbitrary processing * Added Net::LDAP::Filter#execute, which allows arbitrary processing
based on LDAP filters. 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 == Net::LDAP 0.0.4: August 15, 2006
* Undeprecated Net::LDAP#modify. Thanks to Justin Forder for * Undeprecated Net::LDAP#modify. Thanks to Justin Forder for

View file

@ -727,7 +727,7 @@ module Net
@result = @open_connection.bind auth @result = @open_connection.bind auth
else else
conn = Connection.new( :host => @host, :port => @port , :encryption => @encryption) conn = Connection.new( :host => @host, :port => @port , :encryption => @encryption)
@result = conn.bind @auth @result = conn.bind auth
conn.close conn.close
end end