All of lore.kernel.org
 help / color / mirror / Atom feed
* NFSv4 automount - nss_getpwnam name 'user@domain.com' does not map into domain 'localdomain'
@ 2011-01-19  0:29 Ray Van Dolson
  2011-01-19 14:22 ` [rhelv6-list] " Greg_Swift
  0 siblings, 1 reply; 5+ messages in thread
From: Ray Van Dolson @ 2011-01-19  0:29 UTC (permalink / raw)
  To: rhelv6-list; +Cc: linux-nfs

Am doing a kickstart installation of RHEL 6.0 vanilla (no errata
applied).

After reboot, when using the automounter to access NFSv4 shares
(running on Fedora 13), we see the following in the logs on the RHEL6
client:

Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name 'root@esri.com' does not map into domain 'localdomain'
Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name 'ray5147@esri.com' does not map into domain 'localdomain'

As a result, directories are not mapped to the correct users but
instead to 'nobody'.

This is odd, because per the idmap man pages, the default domain used
by rpc.idmapd should be the same as the system domain minus the
hostname.  This should be esri.com, and is when I type hostname.

Thinking that perhaps rpc.idmapd was started before the network
subsystem, I restarted it.  Immediately everything worked fine.

I rebooted the system assuming the problem would return, but it didn't.
Maybe there's a cache used by rpc.idmapd (nscd?)?  Is there something
else maybe I'm missing?

Trying to determine if the "right" thing to do is to leave my
configuration as default or if I should be modifying /etc/idmapd.conf
to set a default domain.

Thanks,
Ray

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [rhelv6-list] NFSv4 automount - nss_getpwnam name 'user@domain.com' does not map into domain 'localdomain'
  2011-01-19  0:29 NFSv4 automount - nss_getpwnam name 'user@domain.com' does not map into domain 'localdomain' Ray Van Dolson
@ 2011-01-19 14:22 ` Greg_Swift
  2011-01-19 15:04   ` Ray Van Dolson
  0 siblings, 1 reply; 5+ messages in thread
From: Greg_Swift @ 2011-01-19 14:22 UTC (permalink / raw)
  To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
  Cc: linux-nfs, rhelv6-list, rhelv6-list-bounces



rhelv6-list-bounces@redhat.com wrote on 01/18/2011 06:29:07 PM:

> Am doing a kickstart installation of RHEL 6.0 vanilla (no errata
> applied).
>
> After reboot, when using the automounter to access NFSv4 shares
> (running on Fedora 13), we see the following in the logs on the RHEL6
> client:
>
> Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name
> 'root@esri.com' does not map into domain 'localdomain'
> Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name
> 'ray5147@esri.com' does not map into domain 'localdomain'
>
> As a result, directories are not mapped to the correct users but
> instead to 'nobody'.
>
> This is odd, because per the idmap man pages, the default domain used
> by rpc.idmapd should be the same as the system domain minus the
> hostname.  This should be esri.com, and is when I type hostname.
>
> Thinking that perhaps rpc.idmapd was started before the network
> subsystem, I restarted it.  Immediately everything worked fine.
>
> I rebooted the system assuming the problem would return, but it didn't.
> Maybe there's a cache used by rpc.idmapd (nscd?)?  Is there something
> else maybe I'm missing?
>
> Trying to determine if the "right" thing to do is to leave my
> configuration as default or if I should be modifying /etc/idmapd.conf
> to set a default domain.


shot in the dark... is your real hostname also mapped to
localhost.localdomain in /etc/hosts?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [rhelv6-list] NFSv4 automount - nss_getpwnam name 'user@domain.com' does not map into domain 'localdomain'
  2011-01-19 14:22 ` [rhelv6-list] " Greg_Swift
@ 2011-01-19 15:04   ` Ray Van Dolson
  2011-01-19 15:52     ` Greg_Swift
  0 siblings, 1 reply; 5+ messages in thread
From: Ray Van Dolson @ 2011-01-19 15:04 UTC (permalink / raw)
  To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list; +Cc: linux-nfs

On Wed, Jan 19, 2011 at 06:22:35AM -0800, Greg_Swift@aotx.uscourts.gov wrote:
> 
> 
> rhelv6-list-bounces@redhat.com wrote on 01/18/2011 06:29:07 PM:
> 
> > Am doing a kickstart installation of RHEL 6.0 vanilla (no errata
> > applied).
> >
> > After reboot, when using the automounter to access NFSv4 shares
> > (running on Fedora 13), we see the following in the logs on the RHEL6
> > client:
> >
> > Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name
> > 'root@esri.com' does not map into domain 'localdomain'
> > Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name
> > 'ray5147@esri.com' does not map into domain 'localdomain'
> >
> > As a result, directories are not mapped to the correct users but
> > instead to 'nobody'.
> >
> > This is odd, because per the idmap man pages, the default domain used
> > by rpc.idmapd should be the same as the system domain minus the
> > hostname.  This should be esri.com, and is when I type hostname.
> >
> > Thinking that perhaps rpc.idmapd was started before the network
> > subsystem, I restarted it.  Immediately everything worked fine.
> >
> > I rebooted the system assuming the problem would return, but it didn't.
> > Maybe there's a cache used by rpc.idmapd (nscd?)?  Is there something
> > else maybe I'm missing?
> >
> > Trying to determine if the "right" thing to do is to leave my
> > configuration as default or if I should be modifying /etc/idmapd.conf
> > to set a default domain.
> 
> shot in the dark... is your real hostname also mapped to
> localhost.localdomain in /etc/hosts?

Yes, it is... I'd stumbled across a similar suggestion, but kinda was
puzzled that things seemed to start working even without changing the
entry in /etc/hosts.

This is what made me think nscd or some caching was involved...

Ray

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [rhelv6-list] NFSv4 automount - nss_getpwnam name 'user@domain.com' does not map into domain 'localdomain'
  2011-01-19 15:04   ` Ray Van Dolson
@ 2011-01-19 15:52     ` Greg_Swift
  2011-01-26 15:02       ` Dan Burkland
  0 siblings, 1 reply; 5+ messages in thread
From: Greg_Swift @ 2011-01-19 15:52 UTC (permalink / raw)
  To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
  Cc: linux-nfs,
	Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list,
	rhelv6-list-bounces



rhelv6-list-bounces@redhat.com wrote on 01/19/2011 09:04:50 AM:

> > > Am doing a kickstart installation of RHEL 6.0 vanilla (no errata
> > > applied).
> > >
> > > After reboot, when using the automounter to access NFSv4 shares
> > > (running on Fedora 13), we see the following in the logs on the RHEL6
> > > client:
> > >
> > > Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name
> > > 'root@esri.com' does not map into domain 'localdomain'
> > > Jan 18 15:56:16 rhel6test rpc.idmapd[1387]: nss_getpwnam: name
> > > 'ray5147@esri.com' does not map into domain 'localdomain'
> > >
> > > As a result, directories are not mapped to the correct users but
> > > instead to 'nobody'.
> > >
> > > This is odd, because per the idmap man pages, the default domain used
> > > by rpc.idmapd should be the same as the system domain minus the
> > > hostname.  This should be esri.com, and is when I type hostname.
> > >
> > > Thinking that perhaps rpc.idmapd was started before the network
> > > subsystem, I restarted it.  Immediately everything worked fine.
> > >
> > > I rebooted the system assuming the problem would return, but it
didn't.
> > > Maybe there's a cache used by rpc.idmapd (nscd?)?  Is there something
> > > else maybe I'm missing?
> > >
> > > Trying to determine if the "right" thing to do is to leave my
> > > configuration as default or if I should be modifying /etc/idmapd.conf
> > > to set a default domain.
> >
> > shot in the dark... is your real hostname also mapped to
> > localhost.localdomain in /etc/hosts?
>
> Yes, it is... I'd stumbled across a similar suggestion, but kinda was
> puzzled that things seemed to start working even without changing the
> entry in /etc/hosts.
>
> This is what made me think nscd or some caching was involved...


well it makes sense to ask.  i think the hosts file is exactly the issue
though because if its starting before the network it is resolving based on
local /etc/hosts entry.  However maybe NFS (or underlying dns layer) is
smart enough to realize that if there is network access its better to do
the hostname lookup against the dns servers.?  So once you restarted it
after the network is available, it got the right domain and worked.

I personally recommend (normally, not just in this situation) that if your
hostname maps to a specific IP, you can still put that mapping
in /etc/hosts, but make sure that only localhost and localhost.domain are
mapping to 127.0.0.1.

-greg


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [rhelv6-list] NFSv4 automount - nss_getpwnam name 'user@domain.com' does not map into domain 'localdomain'
  2011-01-19 15:52     ` Greg_Swift
@ 2011-01-26 15:02       ` Dan Burkland
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Burkland @ 2011-01-26 15:02 UTC (permalink / raw)
  To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
  Cc: linux-nfs, rhelv6-list-bounces

/etc/idmapd.conf is configured the same way on both the NFSv4 Server & Client correct? (I assume this is correct). I've run into this several times and usually a reboot of the "idmapd" service on the client fixes the issue (make sure that the NFS share is not mounted on the client).

Regards,

Dan


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-26 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19  0:29 NFSv4 automount - nss_getpwnam name 'user@domain.com' does not map into domain 'localdomain' Ray Van Dolson
2011-01-19 14:22 ` [rhelv6-list] " Greg_Swift
2011-01-19 15:04   ` Ray Van Dolson
2011-01-19 15:52     ` Greg_Swift
2011-01-26 15:02       ` Dan Burkland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.