class NTLM::Negotiate

Overview

Client sends this to the MS server https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b34032e5-3aae-4bc6-84c3-c6d80eadf7f2

Defined in:

messages/negotiate.cr

Constant Summary

ENDIAN = ["little"]

Client sends this to the MS server https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b34032e5-3aae-4bc6-84c3-c6d80eadf7f2

KLASS_NAME = [NTLM::Negotiate]

Client sends this to the MS server https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b34032e5-3aae-4bc6-84c3-c6d80eadf7f2

PARTS = [{type: "string", name: protocol, cls: String, onlyif: nil, verify: nil, length: nil, value: -> do "NTLMSSP" end, encoding: nil}, {type: "enum", name: message_type, cls: UInt32, onlyif: nil, verify: nil, value: nil, encoding: Type}, {type: "enum", name: flags_low, cls: UInt16, onlyif: nil, verify: nil, value: nil, encoding: FlagsLow}, {type: "enum", name: flags_high, cls: UInt16, onlyif: nil, verify: nil, value: nil, encoding: FlagsHigh}, {type: "group", name: domain_loc, cls: DomainLoc, onlyif: -> do (flags_low.negotiate_domain_supplied? || flags_low.negotiate_workstation_supplied?) || flags_high.negotiate_version? end, verify: nil, value: nil}, {type: "group", name: workstation_loc, cls: WorkstationLoc, onlyif: -> do (flags_low.negotiate_domain_supplied? || flags_low.negotiate_workstation_supplied?) || flags_high.negotiate_version? end, verify: nil, value: nil}, {type: "group", name: version, cls: Version, onlyif: -> do flags_high.negotiate_version? end, verify: nil, value: nil}] of Nil

Client sends this to the MS server https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b34032e5-3aae-4bc6-84c3-c6d80eadf7f2

REMAINING = [{type: "bytes", name: buffer, onlyif: nil, verify: nil}] of Nil

Client sends this to the MS server https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b34032e5-3aae-4bc6-84c3-c6d80eadf7f2

Class Method Summary

Instance Method Summary

Class Method Detail

def self.bit_fields #

Client sends this to the MS server https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b34032e5-3aae-4bc6-84c3-c6d80eadf7f2


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def buffer : Bytes #

def buffer=(buffer : Bytes) #

def buffer_start #

[View source]
def domain : String #

[View source]
def domain=(value : String) #

[View source]
def domain_loc : NTLM::Negotiate::DomainLoc #

def domain_loc=(domain_loc : NTLM::Negotiate::DomainLoc) #

def flags_high : FlagsHigh #

def flags_high=(flags_high : FlagsHigh) #

def flags_low : FlagsLow #

def flags_low=(flags_low : FlagsLow) #

def message_type : Type #

def message_type=(message_type : Type) #

def protocol : String #

def protocol=(protocol : String) #

def update_buffer #

[View source]
def version : NTLM::Negotiate::Version #

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b1a6ceb2-f8ad-462b-b5af-f18527c48175


def version=(version : NTLM::Negotiate::Version) #

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/b1a6ceb2-f8ad-462b-b5af-f18527c48175


def workstation : String #

[View source]
def workstation=(value : String) #

[View source]
def workstation_loc : NTLM::Negotiate::WorkstationLoc #

def workstation_loc=(workstation_loc : NTLM::Negotiate::WorkstationLoc) #