cdist-backup/cdist
Philippe Grégoire a915baa73b
__user: explore with /etc files
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.
2017-08-20 12:10:54 -04:00
..
conf __user: explore with /etc files 2017-08-20 12:10:54 -04:00
core Add file locking for -j parallel execution. 2017-08-13 12:26:20 +02:00
exec Add archiving support. 2017-08-09 16:56:02 +02:00
sphinxext pep8 2016-07-05 20:44:24 +02:00
test Add file locking for -j parallel execution. 2017-08-13 12:26:20 +02:00
util Merge remote-tracking branch 'ungleich/master' into ssh-mux-sigpipe 2017-07-19 07:55:19 +02:00
__init__.py Merge remote-tracking branch 'ungleich/master' into ssh-mux-sigpipe 2017-07-19 07:55:19 +02:00
argparse.py Fix for mistake in 982bb286f4. 2017-08-19 19:12:30 +02:00
autil.py Add archiving support. 2017-08-09 16:56:02 +02:00
banner.py lib/cdist => cdist (pypi) 2012-10-25 17:21:58 +02:00
config.py Set default remote_cmds_cleanup_pattern 2017-08-14 16:13:57 -04:00
emulator.py Merge remote-tracking branch 'ungleich/master' into jobs-locking 2017-08-13 12:27:57 +02:00
flock.py Add file locking for -j parallel execution. 2017-08-13 12:26:20 +02:00
hostsource.py Merge custom cache path pattern from beta branch. 2017-07-01 23:59:51 +02:00
install.py Add missing param. 2016-11-01 08:11:37 +01:00
inventory.py pep8 2017-07-25 12:43:54 +02:00
log.py Define better warning facility. 2017-07-04 23:49:43 +02:00
message.py pep8 2016-07-05 20:44:24 +02:00
mputil.py Further improve parallel execution. 2017-07-26 17:39:07 +02:00
shell.py Merge inventory from beta branch. 2017-07-20 22:04:44 +02:00