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.
|
# be a good idea. Maybe this should be configurable.
|
||||||
def parse_search_return(sequence)
|
def parse_search_return(sequence)
|
||||||
sequence.length >= 2 or raise Net::LDAP::PDU::Error, "Invalid Search Response length."
|
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] }
|
sequence[1].each { |seq| @search_entry[seq[0]] = seq[1] }
|
||||||
end
|
end
|
||||||
private :parse_search_return
|
private :parse_search_return
|
||||||
|
@ -270,6 +270,7 @@ module Net
|
||||||
when "LdapPduError"
|
when "LdapPduError"
|
||||||
warn "Net::#{name} has been deprecated. Use Net::LDAP::PDU::Error instead."
|
warn "Net::#{name} has been deprecated. Use Net::LDAP::PDU::Error instead."
|
||||||
Net::LDAP::PDU::Error
|
Net::LDAP::PDU::Error
|
||||||
|
when 'LDAP'
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue