Package entropy :: Package services :: Module skel :: Class SocketAuthenticator

Class SocketAuthenticator

source code


Base class for Entropy SocketHost RPC authentication.

Instance Methods
 
__init__(self, HostInterface) source code
 
set_session(self, session)
Set Entropy SocketHost connection session id.
source code
list
hide_login_data(self, args)
Given Entropy SocketHost RPC login command in list form, hide password data (which is going to be stored in log file).
source code
 
set_exc_permissions(self, uid, gid)
Set execution permissions (setuid, setgid) for the running process.
source code
 
terminate_instance(self)
This function is called when the Authenticator is going to be destroyed.
source code
Method Details

set_session(self, session)

source code 

Set Entropy SocketHost connection session id.

Parameters:
  • session (int) - connection session

hide_login_data(self, args)

source code 

Given Entropy SocketHost RPC login command in list form, hide password data (which is going to be stored in log file). NOTE: this method MUST be reimplemented

Parameters:
  • args (list) - arguments of RPC login command
Returns: list
filtered list

set_exc_permissions(self, uid, gid)

source code 

Set execution permissions (setuid, setgid) for the running process.

Parameters:
  • uid - user id
  • gid - group id

terminate_instance(self)

source code 

This function is called when the Authenticator is going to be destroyed. You can reimplement this to execute arbitrary code (for eg. terminate a database connection). NOTE: there is no need to reimplement this if you are not using any fancy stuff.