Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHasPAM ¶
func BuildHasPAM() bool
BuildHasPAM returns true if the binary was build with support for PAM compiled in.
func SystemHasPAM ¶
func SystemHasPAM() bool
SystemHasPAM returns true if the PAM library exists on the system.
Types ¶
type PAM ¶
type PAM struct { }
PAM is used to create a PAM context and initiate PAM transactions to checks the users account and open/close a session.
func Open ¶
func Open(config *servicecfg.PAMConfig) (*PAM, error)
Open creates a PAM context and initiates a PAM transaction to check the account and then opens a session.
func (*PAM) Close ¶
Close will close the session, the PAM context, and release any allocated memory.
func (*PAM) Environment ¶
Environment returns the PAM environment variables associated with a PAM handle.
Click to show internal directories.
Click to hide internal directories.