From 6310c2ed37586d684a10008acc2a422c178dc281 Mon Sep 17 00:00:00 2001 From: Joris van Rooij Date: Tue, 22 Mar 2011 15:55:51 +0100 Subject: [PATCH] Fixed an error in the modify functions. --- lib/net/ldap.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index 6392048f..7a629605 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -1452,9 +1452,9 @@ def search(args = {}) result_code end - def self.modify_ops args + def modify_ops args modify_ops = [] - a = args[:operations] and a.each {|op, attr, values| + a = args and a.each {|op, attr, values| # TODO, fix the following line, which gives a bogus error # if the opcode is invalid. op_1 = {:add => 0, :delete => 1, :replace => 2} [op.to_sym].to_ber_enumerated