Part of twisted.python.fakepwd View Source View In Hierarchy
UserDatabase
holds a traditional POSIX user data in memory and makes it available via
the same API as pwd
.Method | __init__ | Undocumented |
Method | addUser | Add a new user record to this database. |
Method | getpwuid | Return the user record corresponding to the given uid. |
Method | getpwnam | Return the user record corresponding to the given username. |
Method | getpwall | Return a list of all user records. |
Instance Variable | _users | A list of _UserRecord
instances holding all user data added to this database. |
Parameters | username | The value for the pw_name field of the user record to add. (type: str ) |
password | The value for the pw_passwd field of the user record to add. (type: str ) | |
uid | The value for the pw_uid field of the user record to add. (type: int ) | |
gid | The value for the pw_gid field of the user record to add. (type: int ) | |
gecos | The value for the pw_gecos field of the user record to add. (type: str ) | |
home | The value for the pw_dir field of the user record to add. (type: str ) | |
shell | The value for the pw_shell field of the user record to add. (type: str ) |