a915baa73b
getent(1) is a utility available where Name Service Switch (NSS) is available. Many modern operating systems support it, but that may not be the case of all (e.g. embedded systems). This commit modifies the __user type explorers to check the traditional files instead of relying solely on the availability of getent(1). - Makes the group explorer use /etc/group - Makes the passwd explorer use /etc/passwd - Makes the shadow explorer use /etc/shadow Implementation note "getent shadow" does not support querying an entry using a uid since it does not store that information. Since the shadow explorer uses __object_id, the passwd explorer does not check if __object_id matches an entry by uid. This behavior ensures consistent, transparent behavior of the type. The group explorer, on the other hand, handles group names and uids; like always. |
||
---|---|---|
.. | ||
conf | ||
core | ||
exec | ||
sphinxext | ||
test | ||
util | ||
__init__.py | ||
argparse.py | ||
autil.py | ||
banner.py | ||
config.py | ||
emulator.py | ||
flock.py | ||
hostsource.py | ||
install.py | ||
inventory.py | ||
log.py | ||
message.py | ||
mputil.py | ||
shell.py |