winrmkrb5

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 11 Imported by: 1

README

go-winrmkrb5

Krb5 Transporter for the masterzen's Go WinRM client.

Forked from https://github.com/dpotapov/winrm-auth-krb5 and https://github.com/dpotapov/go-spnego with updates for ease of use

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	HTTPClient *http.Client
	Endpoint   *winrm.Endpoint
	Username   string
	Password   string
	Domain     string
	KDC        []string
	KRB5Conf   string
	Timeout    time.Duration
}

Transport implements the winrm.Transporter interface.

func (*Transport) EndpointURL

func (t *Transport) EndpointURL() string

EndpointURL returns a WinRM http(s) URL. It does the same job as unexported method url() for the winrm.Endpoint type.

func (*Transport) Post

func (t *Transport) Post(client *winrm.Client, request *soap.SoapMessage) (string, error)

Post sends a POST request to WinRM server with the provided SOAP payload. If the WinRM web service responds with Unauthorized status, the method performs KRB5 authentication.

func (*Transport) Transport

func (t *Transport) Transport(endpoint *winrm.Endpoint) error

Transport applies configuration parameters from the Endpoint to the underlying HTTPClient. If the HTTPClient is nil, a new instance of http.Client will be created.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL