Fixes for mysterious 'constant not missing' errors
This commit is contained in:
parent
d778139d75
commit
4159643c3d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue