lib/net/ldap/pdu.rb
##
# Parse an extended response
#
# http://www.ietf.org/rfc/rfc2251.txt
#
# Each Extended operation consists of an Extended request and an
# Extended response.
#
#      ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
#           requestName      [0] LDAPOID,
#           requestValue     [1] OCTET STRING OPTIONAL }


Each Extended operation consists of an Extended request and an
Extended response.


Each Extended operation consists of an Extended request and an Extended response .
def parse_extended_response(sequence)
    sequence.length >= 3 or raise Net::LDAP::PDU::Error, "Invalid LDAP result length."
    @ldap_result = {
      :resultCode => sequence[0],
      :matchedDN => sequence[1],
      :errorMessage => sequence[2],
    }
    @extended_response = sequence[3]
  end
def parse_extended_response ( sequence ) sequence . length >= 3 or raise Net :: LDAP :: PDU :: Error , "Invalid LDAP result length." @ldap_result = { :resultCode => sequence [ 0 ] , :matchedDN => sequence [ 1 ] , :errorMessage => sequence [ 2 ] , } @extended_response = sequence [ 3 ] end
Parse an extended response
http://www.ietf.org/rfc/rfc2251.txt
Parse an extended response http : // www . ietf . org / rfc / rfc2251 . txt
sequence
<not_specific>