-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsshkrb5.go
31 lines (27 loc) · 877 Bytes
/
sshkrb5.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
Package sshkrb5 implements the GSSAPIClient and GSSAPIServer interfaces in the
golang.org/x/crypto/ssh package.
*/
package sshkrb5
import (
"errors"
"os"
)
//nolint:nolintlint,unused
var (
errNotSupported = errors.New("not supported")
osHostname = os.Hostname //nolint:gochecknoglobals
)
// NewClientWithCredentials returns a new Client using the provided
// credentials.
//
// Deprecated: Use NewClient instead.
func NewClientWithCredentials(domain, username, password string) (*Client, error) {
return NewClient(WithDomain(domain), WithUsername(username), WithPassword(password))
}
// NewClientWithKeytab returns a new Client using the provided keytab.
//
// Deprecated: Use NewClient instead.
func NewClientWithKeytab(domain, username, path string) (*Client, error) {
return NewClient(WithRealm(domain), WithUsername(username), WithKeytab[Client](path))
}