Module: Net::HTTPHeader

Defined in:
lib/passwordstate/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ntlm_auth_informationObject (readonly)

Returns the value of attribute ntlm_auth_information.



6
7
8
# File 'lib/passwordstate/util.rb', line 6

def ntlm_auth_information
  @ntlm_auth_information
end

#ntlm_auth_optionsObject (readonly)

Returns the value of attribute ntlm_auth_options.



6
7
8
# File 'lib/passwordstate/util.rb', line 6

def ntlm_auth_options
  @ntlm_auth_options
end

Instance Method Details

#ntlm_auth(username, password, domain = nil, workstation = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/passwordstate/util.rb', line 8

def ntlm_auth(username, password, domain = nil, workstation = nil)
  @ntlm_auth_information = {
    user: username,
    password: password
  }
  @ntlm_auth_information[:domain] = domain unless domain.nil?
  @ntlm_auth_options = {}
  @ntlm_auth_options[:workstation] = workstation unless workstation.nil?
end