Package cobra :: Package auth :: Module shadowfile :: Class ShadowFileAuth
[hide private]
[frames] | no frames]

Class ShadowFileAuth

source code


An auth module which uses a simple text file with salted SHA256 password hashes. ( this module may be executed as main to produce rows for the file )

File Format: # comment <username>:<salt>$<saltedhash>

Instance Methods [hide private]
 
__init__(self, filename) source code
 
authCobraUser(self, authinfo)
Authenticate a user and return their user name.
source code

Inherited from CobraAuthenticator: checkUserAccess

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 
Overrides: CobraAuthenticator.__init__

authCobraUser(self, authinfo)

source code 

Authenticate a user and return their user name.
Arguments:
    authinfo - a dictionary which can be authmod dependant
               ( but probably just has user & passwd )

Overrides: CobraAuthenticator.authCobraUser
(inherited documentation)