Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libnfsidmap: Unable to determine the NFSv4 domain
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Tue Jul 02, 2019 7:08 am    Post subject: libnfsidmap: Unable to determine the NFSv4 domain Reply with quote

Hello everybody,

every ~20 minutes I see a block like this in my syslog:
Code:
Jul 02 09:00:26 [nfsidmap] libnfsidmap: Unable to determine the NFSv4 domain; Using 'localdomain' as the NFSv4 domain which means UIDs will be mapped to the 'Nobody-User' user defined in /etc/idmapd.conf
Jul 02 09:00:26 [nfsidmap] libnfsidmap: using (default) domain: localdomain
Jul 02 09:00:26 [nfsidmap] libnfsidmap: Realms list: 'LOCALDOMAIN'
Jul 02 09:00:26 [nfsidmap] libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
Jul 02 09:00:26 [nfsidmap] nss_getpwnam: name 'root@intra.foobar.com' does not map into domain 'localdomain'
Jul 02 09:00:26 [nfsidmap] libnfsidmap: Unable to determine the NFSv4 domain; Using 'localdomain' as the NFSv4 domain which means UIDs will be mapped to the 'Nobody-User' user defined in /etc/idmapd.conf
Jul 02 09:00:26 [nfsidmap] libnfsidmap: using (default) domain: localdomain
Jul 02 09:00:26 [nfsidmap] libnfsidmap: Realms list: 'LOCALDOMAIN'
Jul 02 09:00:26 [nfsidmap] libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
Jul 02 09:00:26 [nfsidmap] nss_name_to_gid: name 'root@intra.foobar.com' does not map into domain 'localdomain'

However nfs is working, what is missing here, how can I fix that?
I'm using autofs for all cifs, nfs and mobile storages. All mounts in my /etc/autofs/auto.nfs are working fine.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1679
Location: Frankfurt, Germany

PostPosted: Tue Jul 02, 2019 9:03 pm    Post subject: Reply with quote

Does it help to specify your 'domain' in /etc/idmapd.conf?
Code:
# The following should be set to the local NFSv4 domain name
# The default is the host's DNS domain name.
Domain = yourdomain.com
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Mon Jul 29, 2019 7:05 am    Post subject: Reply with quote

I added our Domain there, and eventhough it looks like valid syntax according to man idmapd.conf, I get the additional line in the logs:
Code:
[nfsidmap] config error at /etc/idmapd.conf:3: ignoring line not in a section

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1679
Location: Frankfurt, Germany

PostPosted: Mon Jul 29, 2019 8:41 am    Post subject: Reply with quote

You probably forgot to put the 'domain' statement into the '[General]' section.

There's an example 'idmapd.conf' in the source tarball (look at /usr/portage/distfiles/nfs-utils-2.*.tar.bz2, file 'support/nfsidmap/idmapd.conf'). Use that file as a template for '/etc/idmapd.conf'.

It seems that emerge doesn't install that file. I created bug 690982.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Wed Jul 31, 2019 5:35 am    Post subject: Reply with quote

The configuration is accepted now, but the log now still has many entries like
Code:
Jul 31 07:22:40 [nfsidmap] libnfsidmap: using domain: intra.foobar
Jul 31 07:22:40 [nfsidmap] libnfsidmap: Realms list: 'INTRA.FOOBAR'
Jul 31 07:22:40 [nfsidmap] libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
Jul 31 07:22:40 [nfsidmap] libnfsidmap: using domain: intra.foobar
Jul 31 07:22:40 [nfsidmap] libnfsidmap: Realms list: 'INTRA.FOOBAR'
Jul 31 07:22:40 [nfsidmap] libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch

Is that something about the autofs which I use to mount all mobile devices, nfs and cifs? How can I avoid these verbose logs?
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1564
Location: Germany

PostPosted: Wed Aug 14, 2019 7:32 am    Post subject: Reply with quote

My autofs setup about cifs looks like

Code:
# grep -h -v "^#" /etc/autofs/auto.{master,cifs} | grep cifs
/mnt/cifs  /etc/autofs/auto.cifs --timeout=600 --ghost
home       -fstype=cifs,vers=3.0,username=$CIFSUSER,credentials=$HOME/.pw,uid=$UID,gid=$UID   ://filesrv/User\$/$CIFSUSER

Any way to mute nfsidmap from polluting the log files?
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum