Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator drives PAM authentication using a configurable session opener.
func NewAuthenticator ¶
func NewAuthenticator(service string, opener SessionOpener) (*Authenticator, error)
NewAuthenticator constructs a PAM authenticator using the provided service name. A nil opener selects the default implementation that talks to the host PAM stack.
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(ctx context.Context, username, password string) (err error)
Authenticate validates a user/password pair against the configured PAM service.
Click to show internal directories.
Click to hide internal directories.