Le 17/07/18 à 01:58, Michael Biebl a écrit :
Hi bigon
On Thu, 26 May 2016 23:26:01 +0200 Laurent Bigonville <bi...@debian.org>
wrote:
Package: libnss-mymachines
Version: 230-1
Severity: wishlist
Hi,
The nss-mymachines manpage states:
Here is an example /etc/nsswitch.conf file that enables nss-mymachines
correctly:
passwd: compat mymachines
group: compat mymachines
[...]
Doesn't that means that the postinst script should also add the module to
passwd and group
I've just checked a Fedora VM, and it seems to only enable mymachines
for hosts (as we do in Debian):
# grep mymachines /etc/nsswitch.conf
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname mymachines
Now I wonder whether the upstream docs are correct on this matter and we
should actually enable it for passwd/group, or if the docs should be fixed.
For what I can see in the source, mymachine module implement the
functions for the passwd and group databases as well:
nss-mymachines.c:enum nss_status _nss_mymachines_getpwnam_r(
nss-mymachines.c:enum nss_status _nss_mymachines_getpwuid_r(
nss-mymachines.c:enum nss_status _nss_mymachines_getgrnam_r(
nss-mymachines.c:enum nss_status _nss_mymachines_getgrgid_r(
Maybe it's not ready or broken?