Class: WinRM::HTTP::HttpSSPINegotiate
- Inherits:
-
HttpTransport
- Object
- HttpTransport
- WinRM::HTTP::HttpSSPINegotiate
- Defined in:
- lib/winrm/http/transport_patch.rb
Instance Method Summary collapse
-
#initialize(endpoint, user, pass, opts) ⇒ HttpSSPINegotiate
constructor
A new instance of HttpSSPINegotiate.
Constructor Details
#initialize(endpoint, user, pass, opts) ⇒ HttpSSPINegotiate
Returns a new instance of HttpSSPINegotiate.
23 24 25 26 27 28 29 30 31 |
# File 'lib/winrm/http/transport_patch.rb', line 23 def initialize(endpoint, user, pass, opts) # Override the relevant functionality in httpclient to make sspi work. require 'winrm/http/auth' super(endpoint) @httpcli.set_auth(nil, user, pass) # Remove non-sspi auths auths = @httpcli.www_auth.instance_variable_get('@authenticator') auths.delete_if {|i| not i.is_a?(HTTPClient::SSPINegotiateAuth)} end |