[Bug 1728310] [NEW] libnfsidmap2 fails to obtain username which results in failed translation
Uli
ulrich.felzmann at gmail.com
Sat Oct 28 22:02:38 UTC 2017
Public bug reported:
Environment: IPA + NFSv4 (sec=krb5).
nss.c uses wrong '@' sign to detect the NFS domain resulting in "nobody"
ownerships and the following error messages in an IPA environment:
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: key: 0x2c254c26 type: uid value: rns at localdomain@ipa.localdomain timeout 600
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: calling nsswitch->name_to_uid
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' domain 'ipa.localdomain': resulting localname '(null)'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' does not map into domain 'ipa.localdomain'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: nsswitch->name_to_uid returned -22
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: final return value is -22
Affects at least libnfsidmap2=0.25-5 and 0.25-5.1 on 16.04, 16.10,
17.04, 17.10
Corresponding Debian bug report: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=744768
Tested patch attached.
** Affects: autofs (Ubuntu)
Importance: Undecided
Status: New
** Tags: xenial
** Patch added: "03-nss.c.patch"
https://bugs.launchpad.net/bugs/1728310/+attachment/4999045/+files/03-nss.c.patch
** Description changed:
nss.c uses wrong '@' sign to detect the NFS domain resulting in the
following error messages:
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: key: 0x2c254c26 type: uid value: rns at localdomain@ipa.localdomain timeout 600
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: calling nsswitch->name_to_uid
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' domain 'ipa.localdomain': resulting localname '(null)'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' does not map into domain 'ipa.localdomain'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: nsswitch->name_to_uid returned -22
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: final return value is -22
+
+ Affects at least libnfsidmap2=0.25-5 and 0.25-5.1 on 16.04, 16.10,
+ 17.04, 17.10
+
+ Corresponding Debian bug report: https://bugs.debian.org/cgi-
+ bin/bugreport.cgi?bug=744768
+
+ Tested patch attached.
** Description changed:
- nss.c uses wrong '@' sign to detect the NFS domain resulting in the
- following error messages:
+ nss.c uses wrong '@' sign to detect the NFS domain resulting in "nobody"
+ ownerships and the following error messages:
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: key: 0x2c254c26 type: uid value: rns at localdomain@ipa.localdomain timeout 600
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: calling nsswitch->name_to_uid
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' domain 'ipa.localdomain': resulting localname '(null)'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' does not map into domain 'ipa.localdomain'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: nsswitch->name_to_uid returned -22
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: final return value is -22
Affects at least libnfsidmap2=0.25-5 and 0.25-5.1 on 16.04, 16.10,
17.04, 17.10
Corresponding Debian bug report: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=744768
Tested patch attached.
** Description changed:
nss.c uses wrong '@' sign to detect the NFS domain resulting in "nobody"
- ownerships and the following error messages:
+ ownerships and the following error messages in an IPA environment:
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: key: 0x2c254c26 type: uid value: rns at localdomain@ipa.localdomain timeout 600
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: calling nsswitch->name_to_uid
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' domain 'ipa.localdomain': resulting localname '(null)'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' does not map into domain 'ipa.localdomain'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: nsswitch->name_to_uid returned -22
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: final return value is -22
Affects at least libnfsidmap2=0.25-5 and 0.25-5.1 on 16.04, 16.10,
17.04, 17.10
Corresponding Debian bug report: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=744768
Tested patch attached.
** Description changed:
+ Environment: IPA + NFSv4 (sec=krb5).
+
nss.c uses wrong '@' sign to detect the NFS domain resulting in "nobody"
ownerships and the following error messages in an IPA environment:
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: key: 0x2c254c26 type: uid value: rns at localdomain@ipa.localdomain timeout 600
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: calling nsswitch->name_to_uid
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' domain 'ipa.localdomain': resulting localname '(null)'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' does not map into domain 'ipa.localdomain'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: nsswitch->name_to_uid returned -22
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: final return value is -22
Affects at least libnfsidmap2=0.25-5 and 0.25-5.1 on 16.04, 16.10,
17.04, 17.10
Corresponding Debian bug report: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=744768
Tested patch attached.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1728310
Title:
libnfsidmap2 fails to obtain username which results in failed
translation
Status in autofs package in Ubuntu:
New
Bug description:
Environment: IPA + NFSv4 (sec=krb5).
nss.c uses wrong '@' sign to detect the NFS domain resulting in
"nobody" ownerships and the following error messages in an IPA
environment:
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: key: 0x2c254c26 type: uid value: rns at localdomain@ipa.localdomain timeout 600
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: calling nsswitch->name_to_uid
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' domain 'ipa.localdomain': resulting localname '(null)'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nss_getpwnam: name 'rns at localdomain@ipa.localdomain' does not map into domain 'ipa.localdomain'
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: nsswitch->name_to_uid returned -22
Oct 25 16:49:42 ubuntu-16.04-client.sub.localdomain nfsidmap[6163]: nfs4_name_to_uid: final return value is -22
Affects at least libnfsidmap2=0.25-5 and 0.25-5.1 on 16.04, 16.10,
17.04, 17.10
Corresponding Debian bug report: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=744768
Tested patch attached.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1728310/+subscriptions
More information about the foundations-bugs
mailing list