Class: RubySMB::NTLM::Client

Inherits:
Net::NTLM::Client
  • Object
show all
Defined in:
lib/ruby_smb/ntlm/client.rb

Defined Under Namespace

Classes: Session

Instance Method Summary collapse

Instance Method Details

#init_context(resp = nil, channel_binding = nil) ⇒ Object



68
69
70
71
72
73
74
75
76
# File 'lib/ruby_smb/ntlm/client.rb', line 68

def init_context(resp = nil, channel_binding = nil)
  if resp.nil?
    @session = nil
    type1_message
  else
    @session = Client::Session.new(self, Net::NTLM::Message.decode64(resp), channel_binding)
    @session.authenticate!
  end
end