From c9bd8b4b3d056eb214ac1ba8b2c1f42a8827c8be Mon Sep 17 00:00:00 2001 From: dulanov Date: Fri, 27 May 2011 18:24:52 +0400 Subject: [PATCH] fix incorrect respone with return_result=false --- lib/net/ldap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index 9761f46..b0105fc 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -642,7 +642,7 @@ class Net::LDAP end end - @result == 0 and result_set + result_set || @result == 0 end # #bind connects to an LDAP server and requests authentication based on