Provisionally removed an obsolete way of returning search
results. The code is commented out so we can bring it back if the removal causes regressions.
This commit is contained in:
parent
0719bed7f6
commit
c30a198a29
|
@ -148,14 +148,16 @@ class LdapPdu
|
||||||
# we also return @search_entry, which is an LDAP::Entry object.
|
# we also return @search_entry, which is an LDAP::Entry object.
|
||||||
# If that works out well, then we'll remove the first two.
|
# If that works out well, then we'll remove the first two.
|
||||||
#
|
#
|
||||||
|
# Provisionally removed obsolete search_attributes and search_dn, 04May06.
|
||||||
|
#
|
||||||
def parse_search_return sequence
|
def parse_search_return sequence
|
||||||
sequence.length >= 2 or raise LdapPduError
|
sequence.length >= 2 or raise LdapPduError
|
||||||
@search_entry = LDAP::Entry.new( sequence[0] )
|
@search_entry = LDAP::Entry.new( sequence[0] )
|
||||||
@search_dn = sequence[0]
|
#@search_dn = sequence[0]
|
||||||
@search_attributes = {}
|
#@search_attributes = {}
|
||||||
sequence[1].each {|seq|
|
sequence[1].each {|seq|
|
||||||
@search_entry[seq[0]] = seq[1]
|
@search_entry[seq[0]] = seq[1]
|
||||||
@search_attributes[seq[0].downcase.intern] = seq[1]
|
#@search_attributes[seq[0].downcase.intern] = seq[1]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
private :parse_ldap_result
|
private :parse_ldap_result
|
||||||
|
|
Loading…
Reference in a new issue