pam

package
v0.0.0-...-8365721 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Username string
	Password string
}

Credential represents user provided credential

func (Credential) PAMAuthenticate

func (c Credential) PAMAuthenticate() error

PAMAuthenticate performs PAM authentication for the user credentials provided

func (Credential) PAMResponseHandler

func (c Credential) PAMResponseHandler(s pam.Style, msg string) (string, error)

PAMResponseHandler handles the communication between PAM client and PAM module

func (Credential) PAMStartFunc

func (c Credential) PAMStartFunc() (*pam.Transaction, error)

PAMStartFunc establishes the connection to PAM module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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