Documentation ¶
Overview ¶
Package kerberos provides Kerberos v5 sasl authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct { // Client is a Kerberos client. Client *client.Client // Service is the service name we will get a ticket for. Service string // PersistAfterAuth specifies whether the client should persist after // logging in or if it should be destroyed (the default). // // If persisting, we never call client.Destroy ourselves, and it is // expected that you will return the same client in every authFn. The // client itself spins up a goroutine to automatically renew sessions, // thus if you return the same client, nothing leaks, but if you return // a new client on every call and set PersistAfterAuth, goroutines will // leak. PersistAfterAuth bool }
Auth contains a Kerberos client and the service name that we will use to get a ticket for.
func (Auth) AsMechanism ¶
AsMechanism returns a sasl mechanism that will use a as credentials for all sasl sessions.
This is a shortcut for using the Kerberos function and is useful when you do not need to live-rotate credentials.
Click to show internal directories.
Click to hide internal directories.