All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever@oracle.com>
To: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: SETCLIENTID acceptor
Date: Wed, 9 May 2018 17:19:41 -0400	[thread overview]
Message-ID: <C4BAD0ED-E05B-4A43-8A9A-51176123D6B9@oracle.com> (raw)

I'm right on the edge of my understanding of how this all works.

I've re-keyed my NFS server. Now on my client, I'm seeing this on
vers=3D4.0,sec=3Dsys mounts:

May  8 16:40:30 manet kernel: NFS: NFSv4 callback contains invalid cred
May  8 16:40:30 manet kernel: NFS: NFSv4 callback contains invalid cred
May  8 16:40:30 manet kernel: NFS: NFSv4 callback contains invalid cred

manet is my client, and klimt is my server. I'm mounting with
NFS/RDMA, so I'm mounting hostname klimt.ib, not klimt.

Because the client is using krb5i for lease management, the server
is required to use krb5i for the callback channel (S 3.3.3 of RFC
7530).

After a SETCLIENTID, the client copies the acceptor from the GSS
context it set up, and uses that to check incoming callback
requests. I instrumented the client's SETCLIENTID proc, and I see
this:

check_gss_callback_principal: acceptor=3Dnfs@klimt.ib.1015granger.net, =
principal=3Dhost@klimt.1015granger.net

The principal strings are not equal, and that's why the client
believes the callback credential is bogus. Now I'm trying to
figure out whether it is the server's callback client or the
client's callback server that is misbehaving.

To me, the server's callback principal (host@klimt) seems like it
is correct. The client would identify as host@manet when making
calls to the server, for example, so I'd expect the server to
behave similarly when performing callbacks.

Can anyone shed more light on this?


--
Chuck Lever




             reply	other threads:[~2018-05-09 21:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-09 21:19 Chuck Lever [this message]
2018-05-10 17:40 ` SETCLIENTID acceptor Olga Kornievskaia
2018-05-10 18:09   ` Chuck Lever
2018-05-10 19:07     ` Olga Kornievskaia
2018-05-10 19:23       ` Chuck Lever
2018-05-10 20:58         ` Olga Kornievskaia
2018-05-10 21:11           ` Chuck Lever
2018-05-10 21:34             ` Olga Kornievskaia
2018-05-11 14:34               ` Chuck Lever
2018-05-11 19:43                 ` Chuck Lever
2018-05-11 20:04                   ` Olga Kornievskaia
2018-05-11 20:57           ` Chuck Lever
2018-05-14 17:26             ` Olga Kornievskaia
2018-05-14 18:02               ` Chuck Lever
2018-05-14 21:07                 ` J. Bruce Fields
2018-05-14 21:00 ` 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=C4BAD0ED-E05B-4A43-8A9A-51176123D6B9@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /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 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.