From: "J. Bruce Fields" <bfields@fieldses.org>
To: Norbert Aschendorff <norbert.aschendorff@yahoo.de>
Cc: linux-nfs@vger.kernel.org, Rick Macklem <rmacklem@uoguelph.ca>
Subject: Re: NFSv4, Name (string) mapping vs. raw UID, idmapd and Kernels >= 3.3
Date: Thu, 23 Aug 2012 10:46:05 -0400 [thread overview]
Message-ID: <20120823144605.GA6923@fieldses.org> (raw)
In-Reply-To: <5035F619.80809@yahoo.de>
Adding Rick to the cc:
On Thu, Aug 23, 2012 at 11:21:29AM +0200, Norbert Aschendorff wrote:
> I recently opened a thread on freebsd-stable about problems with the
> mapping of UIDs to user strings (user@domain form) in NFSv4 packets
> running newer kernels:
> [http://www.mail-archive.com/freebsd-stable@freebsd.org/index.html#122549]
> In
> [http://www.mail-archive.com/freebsd-stable@freebsd.org/msg122571.html],
> Rick says that the described issue may be related to the NFSv4/NFSv4.1
> RFCs which deny/allow sending "raw" numeric UIDs (1000 instead of
> "user@domain").
> The problem is that Linux kernels newer than 3.2 (the last working
> kernel, on both Debian and Fedora; I've tested 3.3, 3.4 and 3.5) send
> these numeric UIDs/GIDs [1] which, as it's described in the mentioned
> email, may be convenient when mounting NFSv4 filesystems as root
> filesystem (at a point where an idmapd/nfsuserd (on FreeBSD) isn't
> already running) and numeric UIDs/GIDs are required (because of the
> early stage)
> Now it could be that Kernels newer than 3.2 (>= 3.3) support this
> feature (which is said to appear in NFSv4.1) already - and FreeBSD 9.0
> does not (it shows 32767 as UID - due to that I discovered this issue; a
> Fedora 17/k3.5 system supports the numeric UIDs/GIDs without any problems).
Yes, newer linux servers by default do return numeric ID's (unless
kerberos is used).
> --> 1. Is this assumption correct? Or is it a bug as filed here:
> [https://bugzilla.novell.com/show_bug.cgi?id=756897]
That's slightly different, as it concerns a *client* sending numeric
id's to a server. The client should in that case be falling back on the
old behavior, and if that's not working there's some other bug.
> --> 2. As Rick says finally in
> [http://www.mail-archive.com/freebsd-stable@freebsd.org/msg122572.html],
> it would be cool if this behavior was tunable. Is it tunable via options
> in /etc/exports? Or in idmapd.conf? (The man pages don't describe such
> directives (at least at the first look)).
It's tunable via the nfsd module's "nfs4_disable_idmapping" parameter.
So, for example,
echo "N" > /sys/module/nfsd/parameters/nfs4_disable_idmapping
should return the server to its old behavior.
"Y" was made the default because even the old rfc 3530 language allowed
servers to return numeric ID's, so we assumed correct clients would need
to be prepared for them.
It may be the server-side default was too aggressive and needs to be
changed, but we'd also like to make sure that clients are fixed.
--b.
next prev parent reply other threads:[~2012-08-23 14:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 9:21 NFSv4, Name (string) mapping vs. raw UID, idmapd and Kernels >= 3.3 Norbert Aschendorff
2012-08-23 14:46 ` J. Bruce Fields [this message]
2012-08-23 15:04 ` Norbert Aschendorff
2012-08-24 0:25 ` Rick Macklem
2012-08-24 22:02 ` J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120823144605.GA6923@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
--cc=norbert.aschendorff@yahoo.de \
--cc=rmacklem@uoguelph.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).