Public Member Functions | |
def | __init__ |
rcSecurityMan constructor. | |
def | readPermissions |
Read permissions from the security.cfg file and update user objects. | |
def | registerPermission |
Register a permission given a role. | |
def | checkPermission |
Checks if the user has been granted the specified permission. | |
def | roleHasPermission |
Check if permission exists in role. | |
def | getPermissions |
Returns the list of all permissions defined. | |
def | getPermissionDescription |
Returns the description for the specified permission. | |
def | getRoles |
Returns the list of all roles defined. | |
def | authenticateUser |
Authenticate the user based on the given login id and password. | |
def | changePassword |
Change an existing user's password. | |
def | addPassword |
Add a new user to the password database. | |
def | checkPassword |
Checks if a user already has a password. | |
def | deleteUser |
Deletes the user based on the given login id and password. | |
def | __makesalt |
private: | |
def | __create |
def | __check |
This class contains user authentication and rights management routines.
Definition at line 30 of file rcSecurityMan.py.
|
Definition at line 430 of file rcSecurityMan.py. |
|
Definition at line 423 of file rcSecurityMan.py. |
|
rcSecurityMan constructor.
Definition at line 32 of file rcSecurityMan.py. |
|
private:
Definition at line 419 of file rcSecurityMan.py. |
|
Add a new user to the password database.
Definition at line 274 of file rcSecurityMan.py. |
|
Authenticate the user based on the given login id and password.
Definition at line 171 of file rcSecurityMan.py. |
|
Change an existing user's password.
Definition at line 215 of file rcSecurityMan.py. |
|
Checks if a user already has a password.
Definition at line 326 of file rcSecurityMan.py. |
|
Checks if the user has been granted the specified permission.
Definition at line 115 of file rcSecurityMan.py. |
|
Deletes the user based on the given login id and password.
Definition at line 359 of file rcSecurityMan.py. |
|
Returns the description for the specified permission. If permission does not exist, returns None.
Definition at line 152 of file rcSecurityMan.py. |
|
Returns the list of all permissions defined. If role has been specified then returns all permissions defined for that role.
Definition at line 137 of file rcSecurityMan.py. |
|
Returns the list of all roles defined.
Definition at line 164 of file rcSecurityMan.py. |
|
Read permissions from the security.cfg file and update user objects.
Definition at line 46 of file rcSecurityMan.py. |
|
Register a permission given a role. Method available to be called by a user script that allows the script to register a permission given a role and update any user permissions who belong in that role
Definition at line 94 of file rcSecurityMan.py. |
|
Check if permission exists in role.
Definition at line 126 of file rcSecurityMan.py. |