Bug#825439: libnss-mymachines: Add mymachine module to passwd and group

2018-07-17 Thread Laurent Bigonville

Le 17/07/18 à 01:58, Michael Biebl a écrit :

Hi bigon

On Thu, 26 May 2016 23:26:01 +0200 Laurent Bigonville 
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?



Bug#825439: libnss-mymachines: Add mymachine module to passwd and group

2018-07-16 Thread Michael Biebl
Hi bigon

On Thu, 26 May 2016 23:26:01 +0200 Laurent Bigonville 
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.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#825439: libnss-mymachines: Add mymachine module to passwd and group

2016-05-26 Thread Laurent Bigonville
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

Cheers,

Laurent Bigonville

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libnss-mymachines depends on:
ii  libc62.22-9
ii  libselinux1  2.5-3

libnss-mymachines recommends no packages.

libnss-mymachines suggests no packages.

-- no debconf information