--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: libnfsidmap2 fails to obtain username which results in failed translation
- From: Przemyslaw Sobieski <misobol@yahoo.co.uk>
- Date: Mon, 14 Apr 2014 15:21:51 +0100
- Message-id: <20140414142151.12528.30691.reportbug@h1b01.londynek.net>
Package: libnfsidmap2
Version: 0.25-5
Severity: important
Dear Maintainer,
Hi
I have been using NFS4 on Debian stable (both client and server ) with idmapper without any problems.
Then due to requirments I've updated only client machines to Debian Jessie and we started observing problems with
delayed e-mails delivries in Exim4. Log would show:
2014-04-14 14:50:01 1WZhGr-0003Gt-DL == test1@test.com R=local_user T=maildir_home defer (22): Invalid argument: while setting perms on maildir tmp/1397483401.H512384P12584.h1b01.test.com
Our user base is stored in OpenLDAP, and home directories are shared to mail server via NFS. Some mails gets through fine others don't.
ON NFS server I can see:
NFS Server:
rpc.idmapd: nfsdcb: authbuf=192.168.0.0/20 authtype=user
rpc.idmapd: nfs4_name_to_uid: calling nsswitch->name_to_uid
rpc.idmapd: nss_getpwnam: name 'test1@test.com' domain 'test.com': resulting localname 'test1'
rpc.idmapd: nfs4_name_to_uid: nsswitch->name_to_uid returned 0
rpc.idmapd: nfs4_name_to_uid: final return value is 0
rpc.idmapd: Server : (user) name "test1@test.com" -> id "1001"
rpc.idmapd: nfsdcb: authbuf=192.168.0.0/20 authtype=user
rpc.idmapd: nfs4_name_to_uid: calling nsswitch->name_to_uid
rpc.idmapd: nss_getpwnam: name '1001' domain 'test.com': resulting localname '(null)'
rpc.idmapd: nss_getpwnam: name '1001' does not map into domain 'test.com'
rpc.idmapd: nfs4_name_to_uid: nsswitch->name_to_uid returned -22
rpc.idmapd: nfs4_name_to_uid: final return value is -22
rpc.idmapd: Server : (user) name "1001" -> id "65534"
On NFS client I see:
NFS Client
Apr 14 12:52:09 h1b01 rpc.idmapd[7460]: Client d: (user) name "test1@test.com" -> id "1001"
Apr 14 12:59:31 h1b01 rpc.idmapd[7460]: Client d: (user) id "1001" -> name "test1@test.com"
Our /etc/idmapd.conf is same everywhere:
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
# set your own domain here, if id differs from FQDN minus hostname
# Domain = localdomain
Domain = test.com
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
The NFS mount options are: nfs4 rw,async 0 0
The NFS exports: /export/virtshared 192.168.0.0/20(rw,nohide,async,insecure,no_subtree_check)
I can't work out what's wrong but I have a feeling this is a bug
in libnfsidmap2
Thanks
SoboL
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libnfsidmap2 depends on:
ii libc6 2.18-4
ii libldap-2.4-2 2.4.39-1
ii multiarch-support 2.18-4
libnfsidmap2 recommends no packages.
libnfsidmap2 suggests no packages.
-- no debconf information
--- End Message ---