From 6564aab642a67096d43ae9cb2ced0ffb9a3e7841 Mon Sep 17 00:00:00 2001 From: Tatsuya Sato Date: Fri, 19 Aug 2016 13:15:40 +0900 Subject: [PATCH] Fix the bug #278 --- 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 bcaa579c..a79d6c55 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -1287,7 +1287,7 @@ def use_connection(args) begin conn = new_connection result = conn.bind(args[:auth] || @auth) - return result unless result.code == Net::LDAP::ResultCodeSuccess + return result unless result.result_code == Net::LDAP::ResultCodeSuccess yield conn ensure conn.close if conn