pam

package
v0.13.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider added in v0.12.4

func NewProvider(cfg *Config) auth.Provider

NewProvider creates a new PAM authentication provider.

Types

type Config added in v0.12.4

type Config struct {
	// The name of the PAM service, e.g. system-auth.
	ServiceName string
}

Config contains configuration for PAM authentication.

⚠️ WARNING: Change to the field name must preserve the INI key name for backward compatibility.

type Provider added in v0.12.4

type Provider struct {
	// contains filtered or unexported fields
}

Provider contains configuration of a PAM authentication provider.

func (*Provider) Authenticate added in v0.12.4

func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, error)

func (*Provider) Config added in v0.12.4

func (p *Provider) Config() any

func (*Provider) HasTLS added in v0.12.4

func (*Provider) HasTLS() bool

func (*Provider) SkipTLSVerify added in v0.12.4

func (*Provider) SkipTLSVerify() bool

func (*Provider) UseTLS added in v0.12.4

func (*Provider) UseTLS() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL