|
The freshly-installed configuration of /etc/nsswitch.conf on Fedora 26 is:
{{ passwd: sss files systemd group: sss files systemd }}
Singular queries against this return correct (singular) results:
{{ $ getent group wheel wheel:x:10:someuser }}
But requests for the entire table return results from both sssd and the raw files directly (I assume because sssd won't necessarily have a complete cache of all possible user/group data sources):
{{ $ getent group | fgrep wheel wheel:x:10:someuser wheel:x:10:someuser }}
In the original Trac ticket, it seemed as though the solution of treating the results of a getent table scan as a set was accepted as the right approach, but then this got lost in the shuffle with the move to JIRA.
(Having not looked at the code behind this, could targeted queries for individual lookups be made, letting any nscd/sssd-style caching do the heavy lifting? Rather than scanning the entire result table, which could potentially be quite large in some environments?)
Perhaps this is worth revisiting?
|