From 5d349b43f644abc65d2b058574802ffa6e916664 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Mon, 1 May 2006 12:19:16 +0000 Subject: [PATCH] Fixed a small edge condition relating to adding values to Net::LDAP::Entry. --- lib/net/ldap/entry.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/net/ldap/entry.rb b/lib/net/ldap/entry.rb index fc6bf18..3d89a56 100644 --- a/lib/net/ldap/entry.rb +++ b/lib/net/ldap/entry.rb @@ -46,10 +46,14 @@ class LDAP @myhash[sym] = value end + + #-- + # We have to deal with this one as we do []= + # because this one and not the other one gets called + # in formulations like entry["CN"] << cn. + # def [] name - #unless name.is_a?(Symbol) - # name = name.to_s.downcase.intern - #end + name = name.to_s.downcase.intern unless name.is_a?(Symbol) @myhash[name] end