Documentation ¶
Overview ¶
Package sshkrb5 implements the GSSAPIClient and GSSAPIServer interfaces in the golang.org/x/crypto/ssh package.
Index ¶
- type Client
- type Option
- func WithConfig[T Client](config string) Option[T]
- func WithDomain[T Client](domain string) Option[T]
- func WithKeytab[T Client | Server](keytab string) Option[T]
- func WithLogger[T Client | Server](logger logr.Logger) Option[T]
- func WithPassword[T Client](password string) Option[T]
- func WithRealm[T Client](realm string) Option[T]
- func WithStrictMode[T Server](strict bool) Option[T]
- func WithUsername[T Client](username string) Option[T]
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the ssh.GSSAPIClient interface.
func NewClientWithCredentials
deprecated
func NewClientWithKeytab
deprecated
func (*Client) Close ¶
Close deletes any active security context and unloads any underlying libraries as necessary.
func (*Client) DeleteSecContext ¶
DeleteSecContext is called by the ssh.Client to tear down any active security context.
type Option ¶ added in v1.1.0
Option is the signature for all constructor options.
func WithConfig ¶ added in v1.2.0
WithConfig sets the configuration in the Client.
func WithDomain ¶ added in v1.2.0
WithDomain sets the Kerberos domain in the Client.
func WithKeytab ¶ added in v1.2.0
WithKeytab sets the keytab path in either a Client or Server.
func WithLogger ¶ added in v1.1.0
WithLogger configures a logr.Logger in a Server.
func WithPassword ¶ added in v1.2.0
WithPassword sets the password in the Client.
func WithStrictMode ¶ added in v1.1.0
WithStrictMode is the equivalent of GSSAPIStrictAcceptorCheck.
func WithUsername ¶ added in v1.2.0
WithUsername sets the username in the Client.
type Server ¶ added in v1.1.0
type Server struct {
// contains filtered or unexported fields
}
Server implements the ssh.GSSAPIServer interface.
func (*Server) AcceptSecContext ¶ added in v1.1.0
AcceptSecContext is called by the ssh.ServerConn to accept and advance the security context.
func (*Server) Close ¶ added in v1.1.0
Close deletes any active security context and unloads any underlying libraries as necessary.
func (*Server) DeleteSecContext ¶ added in v1.1.0
DeleteSecContext is called by the ssh.ServerConn to tear down any active security context.