63 const std::string in_type ;
64 const std::string in ;
68 typedef std::vector<Item> ItemArray ;
70 Pam(
const std::string & app ,
const std::string & user ,
bool silent ) ;
84 std::string
name()
const ;
112 virtual void converse( ItemArray & ) = 0 ;
130 virtual void delay(
unsigned int usec ) = 0 ;
148 void operator=(
const Pam & ) ;
virtual void converse(ItemArray &)=0
Called to pass a message to the user, or request a password etc.
void closeSession()
Closes a session.
std::string name() const
Returns the authenticated user name.
void refreshCredentials()
Refreshes credentials.
void checkAccount(bool require_token)
Does "account management", checking that the authenticated user is currently allowed to use the syste...
void reinitialiseCredentials()
Reinitialises credentials.
void openSession()
Starts a session.
void establishCredentials()
Embues the authenticated user with their credentials, such as "tickets" in the form of environment va...
A structure used by G::Pam to hold conversation items.
bool authenticate(bool require_token)
Authenticates the user.
Pam(const std::string &app, const std::string &user, bool silent)
Constructor.
virtual void delay(unsigned int usec)=0
Called when the pam library wants the application to introduce a delay to prevent brute-force attacks...
A pimple-pattern implementation class for G::Pam.
virtual ~Pam()
Destructor.
void deleteCredentials()
Deletes credentials.
A thin interface to the system PAM library, with two pure virtual methods that derived classes should...