package
0.0.0-20250110001425-1c83e13e4735
Repository: https://github.com/getperf/getperf2.git
Documentation: pkg.go.dev
# README
winrm-auth-ntlm
NTLM Transporter for the masterzen's Go WinRM client.
Comparing to original NTLM implementation, the package allows domain user authentication.
Installation:
go get github.com/dpotapov/winrm-auth-ntlm
Usage:
endpoint := winrm.NewEndpoint(*host, *port, false, false, nil, nil, nil, 0)
winrm.DefaultParameters.TransportDecorator = func() winrm.Transporter {
return &winrmntlm.Transport{
Username: *user,
Password: *pswd,
}
}
// Note, username/password pair in the NewClientWithParameters call is ignored
client, err := winrm.NewClientWithParameters(endpoint, "", "", winrm.DefaultParameters)
if err != nil {
panic(err)
}
_, err = client.Run(flag.Arg(0), os.Stdout, os.Stderr)
if err != nil {
panic(err)
}
Please check the full example in the example
directory.
# Packages
No description provided by the author
# Functions
NewNegotiateMessage creates a new NegotiateMessage for the NTLMv2 protocol.
# Structs
NegotiateMessage defines an NTLM Negotiate message that is sent from the client to the server.
Transport implements the winrm.Transporter interface.