https://github.com/dpotapov/winrm-auth-krb5
Krb5 Transporter for the masterzen's Go WinRM client
https://github.com/dpotapov/winrm-auth-krb5
go gokrb5 kerberos winrm
Last synced: 5 months ago
JSON representation
Krb5 Transporter for the masterzen's Go WinRM client
- Host: GitHub
- URL: https://github.com/dpotapov/winrm-auth-krb5
- Owner: dpotapov
- License: mit
- Created: 2018-06-06T07:34:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T07:39:08.000Z (about 8 years ago)
- Last Synced: 2024-06-20T13:38:56.592Z (almost 2 years ago)
- Topics: go, gokrb5, kerberos, winrm
- Language: Go
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# winrm-auth-krb5
Krb5 Transporter for the [masterzen's Go WinRM](https://github.com/masterzen/winrm) client.
Windows & Linux implementations are very different!
Please check https://github.com/dpotapov/go-spnego for details.
Installation:
```
go get github.com/dpotapov/winrm-auth-krb5
```
Usage:
```
endpoint := winrm.NewEndpoint(*host, *port, false, false, nil, nil, nil, 0)
winrm.DefaultParameters.TransportDecorator = func() winrm.Transporter {
return &winrmkrb5.Transport{}
}
// 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.