Skip to content

Commit 4159643

Browse files
derekharmelRoryO
authored andcommitted
Fixes for mysterious 'constant not missing' errors
1 parent d778139 commit 4159643

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/net/ldap/pdu.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def parse_bind_response(sequence)
196196
# be a good idea. Maybe this should be configurable.
197197
def parse_search_return(sequence)
198198
sequence.length >= 2 or raise Net::LDAP::PDU::Error, "Invalid Search Response length."
199-
@search_entry = LDAP::Entry.new(sequence[0])
199+
@search_entry = Net::LDAP::Entry.new(sequence[0])
200200
sequence[1].each { |seq| @search_entry[seq[0]] = seq[1] }
201201
end
202202
private :parse_search_return
@@ -270,6 +270,7 @@ def self.const_missing(name) #:nodoc:
270270
when "LdapPduError"
271271
warn "Net::#{name} has been deprecated. Use Net::LDAP::PDU::Error instead."
272272
Net::LDAP::PDU::Error
273+
when 'LDAP'
273274
else
274275
super
275276
end

0 commit comments

Comments
 (0)