Skip to content

Commit

Permalink
Bugfix. Net::LDAP#bind was ignoring the inbound auth parameter.
Browse files Browse the repository at this point in the history
Thanks to Kouhei Sutou for spotting this and pointing it out.
  • Loading branch information
blackhedd committed May 7, 2007
1 parent 1b568e8 commit 64a8240
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/net/ldap.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def bind auth=@auth
@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


Expand Down

0 comments on commit 64a8240

Please sign in to comment.