t.p.f.ShadowDatabase(object) : class documentation

Part of twisted.python.fakepwd View Source View In Hierarchy

ShadowDatabase holds a shadow user database in memory and makes it available via the same API as spwd.
Present Since12.0
Method __init__ Undocumented
Method addUser Add a new user record to this database.
Method getspnam Return the shadow user record corresponding to the given username.
Method getspall Return a list of all shadow user records.
Instance Variable _users A list of _ShadowRecord instances holding all user data added to this database.
_users =
A list of _ShadowRecord instances holding all user data added to this database.
def __init__(self): (source)
Undocumented
def addUser(self, username, password, lastChange, min, max, warn, inact, expire, flag): (source)
Add a new user record to this database.
ParametersusernameThe value for the sp_nam field of the user record to add. (type: str)
passwordThe value for the sp_pwd field of the user record to add. (type: str)
lastChangeThe value for the sp_lstchg field of the user record to add. (type: int)
minThe value for the sp_min field of the user record to add. (type: int)
maxThe value for the sp_max field of the user record to add. (type: int)
warnThe value for the sp_warn field of the user record to add. (type: int)
inactThe value for the sp_inact field of the user record to add. (type: int)
expireThe value for the sp_expire field of the user record to add. (type: int)
flagThe value for the sp_flag field of the user record to add. (type: int)
def getspnam(self, username): (source)
Return the shadow user record corresponding to the given username.
def getspall(self): (source)
Return a list of all shadow user records.
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.