twisted.python.fakepwd.ShadowDatabase(object) class documentationtwisted.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 Since | 12.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 listof_ShadowRecordinstances holding all user data added to this database. | 
Add a new user record to this database.
| Parameters | username | The value for the sp_namfield of the user record to add. (type:str) | 
| password | The value for the sp_pwdfield of the user record to add. (type:str) | |
| lastChange | The value for the sp_lstchgfield of the user record to add. (type:int) | |
| min | The value for the sp_minfield of the user record to add. (type:int) | |
| max | The value for the sp_maxfield of the user record to add. (type:int) | |
| warn | The value for the sp_warnfield of the user record to add. (type:int) | |
| inact | The value for the sp_inactfield of the user record to add. (type:int) | |
| expire | The value for the sp_expirefield of the user record to add. (type:int) | |
| flag | The value for the sp_flagfield of the user record to add. (type:int) | 
Return the shadow user record corresponding to the given username.