Fixes for mysterious 'constant not missing' errors

This commit is contained in:
Derek Harmel 2010-08-14 05:09:50 +08:00 committed by Rory O'Connell
parent d778139d75
commit 4159643c3d

View file

@ -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