File indexing completed on 2024-04-28 15:53:59
0001 # AUTO-GENERATED FILE -- DO NOT EDIT 0002 0003 """ This module provides access to the Unix shadow password database. 0004 It is available on various Unix versions. 0005 0006 Shadow password database entries are reported as 9-tuples of type struct_spwd, 0007 containing the following items from the password database (see `<shadow.h>'): 0008 sp_namp, sp_pwdp, sp_lstchg, sp_min, sp_max, sp_warn, sp_inact, sp_expire, sp_flag. 0009 The sp_namp and sp_pwdp are strings, the rest are integers. 0010 An exception is raised if the entry asked for cannot be found. 0011 You have to be root to be able to use this module. """ 0012 0013 __package__ = None 0014 0015 def getspall(): 0016 """ getspall() -> list_of_entries 0017 Return a list of all available shadow password database entries, in arbitrary order. 0018 See spwd.__doc__ for more on shadow password database entries. """ 0019 return [] 0020 0021 def getspnam(name): 0022 """ getspnam(name) -> (sp_namp, sp_pwdp, sp_lstchg, sp_min, sp_max, 0023 sp_warn, sp_inact, sp_expire, sp_flag) 0024 Return the shadow password database entry for the given user name. 0025 See spwd.__doc__ for more on shadow password database entries. """ 0026 return (None, None, None, None, None, None, None, None, None) 0027 0028 class struct_spwd(object): 0029 """ spwd.struct_spwd: Results from getsp*() routines. 0030 0031 This object may be accessed either as a 9-tuple of 0032 (sp_nam,sp_pwd,sp_lstchg,sp_min,sp_max,sp_warn,sp_inact,sp_expire,sp_flag) 0033 or via the object attributes as named in the above tuple. """ 0034 0035 n_fields = 9 0036 n_sequence_fields = 9 0037 n_unnamed_fields = 0 0038 sp_expire = None 0039 sp_flag = None 0040 sp_inact = None 0041 sp_lstchg = None 0042 sp_max = None 0043 sp_min = None 0044 sp_nam = None 0045 sp_pwd = None 0046 sp_warn = None 0047