class LDAP::Response

Defined in:

ldap/response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_response(packet : BER) : Response #

[View source]
def self.new(message_id, payload, control : Nil | ASN1::BER = nil) #

[View source]

Instance Method Detail

def control : BER | Nil #

[View source]
def id : Int32 #

[View source]
def paged_cookie : Bytes | Nil #

The RFC 2696 paged-results cookie carried on a SearchResultDone, or nil if the response has no such control. An empty cookie signals the final page.


[View source]
def parse_bind_response #

A BindResponse is an LDAPResult plus two OPTIONAL trailing fields — referral [3] and serverSaslCreds [7] (RFC 4511 §4.2.2) — so the 4th element is not always the credentials: dispatch by context tag, never by position.


[View source]
def parse_entry : LDAP::Entry #

[View source]
def parse_result #

[View source]
def referral : Array(String) | Nil #

The referral [3] URIs of an LDAPResult (present when resultCode is referral), or nil when the field is absent. Only meaningful on a search/modify/compare result — for those, the optional 4th payload element is the referral field (a bind response's optional 4th element is serverSaslCreds, read separately).


[View source]
def referral_uris : Array(String) #

The URIs carried by a SearchResultReference (tag 19), whose payload is the SEQUENCE OF URI directly.


[View source]
def result_message(code : Int) #

[View source]
def tag : LDAP::Tag #

[View source]