Package ganeti :: Package rapi :: Package auth :: Module pam :: Class PamAuthenticator
[hide private]
[frames] | no frames]

Class PamAuthenticator

source code


Class providing an Authenticate method based on interaction with PAM.

Instance Methods [hide private]
 
__init__(self)
Checks whether ctypes has been imported.
source code
str or None
ValidateRequest(self, req, handler_access, _)
Checks whether a user can access a resource.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Checks whether ctypes has been imported.

Overrides: object.__init__

ValidateRequest(self, req, handler_access, _)

source code 

Checks whether a user can access a resource.

This function retuns authenticated user name on success.

Parameters:
  • req - HTTP request context
  • handler_access - access rights required by the requested resourse
  • realm - Authentication realm
Returns: str or None
the authenticated user name if request execution is permitted and None otherwise
Overrides: RapiAuthenticator.ValidateRequest