From 4159643c3d7e657ab50e63485e42e49111f02ae0 Mon Sep 17 00:00:00 2001 From: Derek Harmel Date: Sat, 14 Aug 2010 05:09:50 +0800 Subject: [PATCH] Fixes for mysterious 'constant not missing' errors --- lib/net/ldap/pdu.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/net/ldap/pdu.rb b/lib/net/ldap/pdu.rb index fc94025..e5c1352 100644 --- a/lib/net/ldap/pdu.rb +++ b/lib/net/ldap/pdu.rb @@ -196,7 +196,7 @@ class Net::LDAP::PDU # be a good idea. Maybe this should be configurable. def parse_search_return(sequence) sequence.length >= 2 or raise Net::LDAP::PDU::Error, "Invalid Search Response length." - @search_entry = LDAP::Entry.new(sequence[0]) + @search_entry = Net::LDAP::Entry.new(sequence[0]) sequence[1].each { |seq| @search_entry[seq[0]] = seq[1] } end private :parse_search_return @@ -270,6 +270,7 @@ module Net when "LdapPduError" warn "Net::#{name} has been deprecated. Use Net::LDAP::PDU::Error instead." Net::LDAP::PDU::Error + when 'LDAP' else super end