From c30a198a29d334abd7b93e3ae52184738eb53a23 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Thu, 4 May 2006 11:58:10 +0000 Subject: [PATCH] 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. --- lib/net/ldap/pdu.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/net/ldap/pdu.rb b/lib/net/ldap/pdu.rb index 6f3eac7..3e2528e 100644 --- a/lib/net/ldap/pdu.rb +++ b/lib/net/ldap/pdu.rb @@ -148,14 +148,16 @@ class LdapPdu # we also return @search_entry, which is an LDAP::Entry object. # 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 sequence.length >= 2 or raise LdapPduError @search_entry = LDAP::Entry.new( sequence[0] ) - @search_dn = sequence[0] - @search_attributes = {} + #@search_dn = sequence[0] + #@search_attributes = {} sequence[1].each {|seq| @search_entry[seq[0]] = seq[1] - @search_attributes[seq[0].downcase.intern] = seq[1] + #@search_attributes[seq[0].downcase.intern] = seq[1] } end private :parse_ldap_result