Package gofer :: Module pam :: Class PAM
[hide private]
[frames] | no frames]

Class PAM

source code

PAM object used for authentication.

Instance Methods [hide private]
 
authenticate(self, user, password, service=None)
Authenticate the specified user.
source code
Class Variables [hide private]
str SERVICE = 'passwd'
The default service
Method Details [hide private]

authenticate(self, user, password, service=None)

source code 

Authenticate the specified user.

Parameters:
  • user (str) - A user name.
  • password (str) - A password.
  • service (str) - The optional PAM service.
Raises:
  • Exception - when authentication fails.