Versions in this module Expand all Collapse all v2 v2.0.0 Nov 30, 2023 Changes in this version + func CheckPamHasBinaryProtocol() bool + func CheckPamHasStartConfdir() bool + type BinaryConversationHandler interface + RespondPAMBinary func(BinaryPointer) ([]byte, error) + type BinaryPointer unsafe.Pointer + type ConversationFunc func(Style, string) (string, error) + func (f ConversationFunc) RespondPAM(s Style, msg string) (string, error) + type ConversationHandler interface + RespondPAM func(Style, string) (string, error) + type Error int + const ErrAbort + const ErrAcctExpired + const ErrAuth + const ErrAuthinfoUnavail + const ErrAuthtok + const ErrAuthtokDisableAging + const ErrAuthtokExpired + const ErrAuthtokLockBusy + const ErrAuthtokRecovery + const ErrBadItem + const ErrBuf + const ErrConv + const ErrConvAgain + const ErrCred + const ErrCredExpired + const ErrCredInsufficient + const ErrCredUnavail + const ErrIgnore + const ErrIncomplete + const ErrMaxtries + const ErrModuleUnknown + const ErrNewAuthtokReqd + const ErrNoModuleData + const ErrOpen + const ErrPermDenied + const ErrService + const ErrSession + const ErrSymbol + const ErrSystem + const ErrTryAgain + const ErrUserUnknown + func (status Error) Error() string + type Flags int + const ChangeExpiredAuthtok + const DeleteCred + const DisallowNullAuthtok + const EstablishCred + const RefreshCred + const ReinitializeCred + const Silent + type Item int + const Authtok + const AuthtokType + const FailDelay + const Oldauthtok + const Rhost + const Ruser + const Service + const Tty + const User + const UserPrompt + const Xauthdata + const Xdisplay + type Style int + const BinaryPrompt + const ErrorMsg + const PromptEchoOff + const PromptEchoOn + const TextInfo + type Transaction struct + func Start(service, user string, handler ConversationHandler) (*Transaction, error) + func StartConfDir(service, user string, handler ConversationHandler, confDir string) (*Transaction, error) + func StartFunc(service, user string, handler func(Style, string) (string, error)) (*Transaction, error) + func (t *Transaction) AcctMgmt(f Flags) error + func (t *Transaction) Authenticate(f Flags) error + func (t *Transaction) ChangeAuthTok(f Flags) error + func (t *Transaction) CloseSession(f Flags) error + func (t *Transaction) End() error + func (t *Transaction) GetEnv(name string) string + func (t *Transaction) GetEnvList() (map[string]string, error) + func (t *Transaction) GetItem(i Item) (string, error) + func (t *Transaction) OpenSession(f Flags) error + func (t *Transaction) PutEnv(nameval string) error + func (t *Transaction) SetCred(f Flags) error + func (t *Transaction) SetItem(i Item, item string) error Other modules containing this package github.com/msteinert/pam