authenicate

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PamAuthenticate

func PamAuthenticate(user, password string) (bool, error)

Types

type SSHAuthInfo

type SSHAuthInfo struct {
	SignedData  []byte
	Fingerprint []byte
	Algorithm   string
	Username    string
}

type SSHAuthenticator

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

func NewSSHAuthenticator

func NewSSHAuthenticator(authorizedFilePath string) (*SSHAuthenticator, error)

func (*SSHAuthenticator) Authenticate

func (s *SSHAuthenticator) Authenticate(info *SSHAuthInfo) (bool, error)

func (*SSHAuthenticator) Close

func (s *SSHAuthenticator) Close() error

Jump to

Keyboard shortcuts

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