Package entropy :: Package services :: Module authenticators :: Class phpBB3

Class phpBB3

source code


Instance Methods
 
__init__(self, HostInterface, *args, **kwargs) source code
 
set_session(self, session)
Set Entropy SocketHost connection session id.
source code
 
docmd_login(self, arguments) source code
 
docmd_userdata(self) source code
 
docmd_logout(self, myargs) source code
 
set_exc_permissions(self, *args, **kwargs)
Set execution permissions (setuid, setgid) for the running process.
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
 
terminate_instance(self)
This function is called when the Authenticator is going to be destroyed.
source code

Inherited from auth_interfaces.phpBB3Auth: activate_user, disconnect, does_email_exist, does_username_exist, generate_username_clean, get_email, get_permission_data, get_user_birthday, get_user_data, get_user_group, get_user_groups, get_user_id, get_username, is_administrator, is_developer, is_in_group, is_moderator, is_user, is_user_banned, is_username_allowed, login, logout, register_user, update_email, update_password_hash, update_user_id_profile, validate_username_regex, validate_username_string

Inherited from skel.Authenticator: check_connection, check_logged_in, check_login, check_login_data, is_logged_in, set_login_data

Inherited from skel.RemoteDatabase: check_connection_data, column_in_table_exists, commit, connect, execute_many, execute_query, execute_script, fetchall, fetchall2list, fetchall2set, fetchmany, fetchone, fetchone2list, fetchone2set, lastrowid, set_connection_data, table_exists

Method Details

__init__(self, HostInterface, *args, **kwargs)
(Constructor)

source code 
Overrides: skel.SocketAuthenticator.__init__

set_session(self, session)

source code 

Set Entropy SocketHost connection session id.

Parameters:
  • session - connection session
Overrides: skel.SocketAuthenticator.set_session
(inherited documentation)

set_exc_permissions(self, *args, **kwargs)

source code 

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

Parameters:
  • uid - user id
  • gid - group id
Overrides: skel.SocketAuthenticator.set_exc_permissions
(inherited documentation)

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 - arguments of RPC login command
Returns: list
filtered list
Overrides: skel.SocketAuthenticator.hide_login_data
(inherited documentation)

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.

Overrides: skel.SocketAuthenticator.terminate_instance
(inherited documentation)