Permalink
Browse files

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

Thanks to Kouhei Sutou for spotting this and pointing it out.
  • Loading branch information...
1 parent 1b568e8 commit 64a8240ae0f7c0f10331a68d4aa1ac671f7681ae blackhedd committed May 7, 2007
Showing with 3 additions and 2 deletions.
  1. +2 −1 ChangeLog
  2. +1 −1 lib/net/ldap.rb
View
@@ -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
View
@@ -727,7 +727,7 @@ def bind auth=@auth
@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

0 comments on commit 64a8240

Please sign in to comment.