All of lore.kernel.org
 help / color / mirror / Atom feed
* Kerberos auth Problem with nfs3/4
@ 2010-08-03 15:45 Michael Guntsche
  2010-08-03 19:43 ` J. Bruce Fields
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Guntsche @ 2010-08-03 15:45 UTC (permalink / raw)
  To: linux-nfs

Hi,

I recently tried re-enabling a kerberos setup here after running with
sec=sys for a while. Now the problem is that mount the export with
sec=krb5 just hangs.

To rule everything out I tried mount from the server itself.

mount gibson:/export /mnt

The mount just hangs and does not return.
This is happening on a debian sid system with nfs-utils 1.2.2 installed.

rpc.svcgssd -vvf:
=================
entering poll
leaving poll
handling null request
sname = nfs/gibson.comsick.at@COMSICK.AT
DEBUG: serialize_krb5_ctx: lucid version!
prepare_krb5_rfc1964_buffer: serializing keys with enctype 4 and length
8
doing downcall
mech: krb5, hndl len: 4, ctx len 85, timeout: 1280885973 (35783 from
now), clnt: nfs@gibson.comsick.at, uid: -1, gid: -1, num aux grps: 0:
sending null reply
finished handling null request
entering poll

rpc.gssd -vvf:
==============
beginning poll
destroying client /var/lib/nfs/rpc_pipefs/nfs/clnt1b
destroying client /var/lib/nfs/rpc_pipefs/nfs/clnt1a
handling gssd upcall (/var/lib/nfs/rpc_pipefs/nfs/clnt1c)
handle_gssd_upcall: 'mech=krb5 uid=0 enctypes=18,17,16,23,3,1,2 '
handling krb5 upcall (/var/lib/nfs/rpc_pipefs/nfs/clnt1c)
process_krb5_upcall: service is '<null>'
Successfully obtained machine credentials for principal
'nfs/gibson.comsick.at@COMSICK.AT' stored in ccache
'FILE:/tmp/krb5cc_machine_COMSICK.AT'
INFO: Credentials in CC 'FILE:/tmp/krb5cc_machine_COMSICK.AT' are good
until 1280886246
using FILE:/tmp/krb5cc_machine_COMSICK.AT as credentials cache for
machine creds
using environment variable to select krb5 ccache
FILE:/tmp/krb5cc_machine_COMSICK.AT
creating context using fsuid 0 (save_uid 0)
creating tcp client for server gibson.comsick.at
DEBUG: port already set to 2049
creating context with server nfs@gibson.comsick.at
DEBUG: serialize_krb5_ctx: lucid version!
prepare_krb5_rfc1964_buffer: serializing keys with enctype 4 and length
8
doing downcall

After that nothing. the same setup worked a while ago but of course both
the kernel and the nfs-utils have been updated in the meantime. I tried
this both with nfs3 and nfs4. 

Please tell me if you need further information to help me debug this
problem.

Kind regards,
Michael

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Kerberos auth Problem with nfs3/4
@ 2010-08-03 16:27 Michael Guntsche
  0 siblings, 0 replies; 13+ messages in thread
From: Michael Guntsche @ 2010-08-03 16:27 UTC (permalink / raw)
  To: linux-nfs

Hi again,


Some more information from the logs when trying to mount the export

Aug  3 18:24:28 gibson rpc.gssd: in authgss_create_default()
Aug  3 18:24:28 gibson rpc.gssd: in authgss_create()
Aug  3 18:24:28 gibson rpc.gssd: authgss_create: name is 0x9f852e8
Aug  3 18:24:28 gibson rpc.gssd: authgss_create: gd->name is 0x9f80df8
Aug  3 18:24:28 gibson rpc.gssd: in authgss_refresh()
Aug  3 18:24:28 gibson rpc.gssd: in authgss_marshal()
Aug  3 18:24:28 gibson rpc.gssd: xdr_rpc_gss_cred: encode success (v 1,
proc 1, seq 0, svc 1, ctx (nil):0)
Aug  3 18:24:28 gibson rpc.gssd: xdr_rpc_gss_init_args: encode success
(token 0x9f884f0:595)
Aug  3 18:24:28 gibson rpc.svcgssd: libnfsidmap: using (default) domain:
comsick.at
Aug  3 18:24:28 gibson rpc.svcgssd: libnfsidmap: loaded plugin
/usr/lib/libnfsidmap/nsswitch.so for method nsswitch
Aug  3 18:24:28 gibson rpc.gssd: in authgss_validate()
Aug  3 18:24:28 gibson rpc.gssd: xdr_rpc_gss_init_res decode success
(ctx 0x9f87f80:4, maj 0, min 0, win 128, token 0x9f89dc8:114)
Aug  3 18:24:28 gibson rpc.gssd: authgss_create_default: freeing name
0x9f852e8
Aug  3 18:24:28 gibson rpc.gssd: in authgss_get_private_data()
Aug  3 18:24:28 gibson rpc.gssd: in authgss_free_private_data()
Aug  3 18:24:28 gibson rpc.gssd: in authgss_destroy()
Aug  3 18:24:28 gibson rpc.gssd: in authgss_destroy_context()
Aug  3 18:24:28 gibson rpc.gssd: authgss_destroy: freeing name 0x9f80df8

And then it just steps and the steps repeat after a timeout.

Kind regards,
Michael

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Kerberos auth Problem with nfs3/4
@ 2010-08-03 19:03 Michael Guntsche
  2010-08-03 20:07 ` Andy Adamson
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Guntsche @ 2010-08-03 19:03 UTC (permalink / raw)
  To: linux-nfs

Some more news,

I tried mounting the same export from a macosx client and it succeeded.
There was a difference though when looking at the rpc.svcgssd output

rpc.svcgssd -vvf:
=================
leaving poll
handling null request
sname = maru@COMSICK.AT
DEBUG: serialize_krb5_ctx: lucid version!
prepare_krb5_rfc1964_buffer: serializing keys with enctype 4 and length 8
doing downcall
mech: krb5, hndl len: 4, ctx len 85, timeout: 1280897678 (35627 from now), clnt: <null>, uid: 1000, gid: 1000, num aux grps: 8:
  (   1) 1000
  (   2) 20
  (   3) 24
  (   4) 25
  (   5) 29
  (   6) 44
  (   7) 46
  (   8) 118
sending null reply
finished handling null request
entering poll
leaving poll
handling null request
sname = maru@COMSICK.AT
DEBUG: serialize_krb5_ctx: lucid version!
prepare_krb5_rfc1964_buffer: serializing keys with enctype 4 and length 8
doing downcall
mech: krb5, hndl len: 4, ctx len 85, timeout: 1280897678 (35627 from now), clnt: <null>, uid: 1000, gid: 1000, num aux grps: 8:
  (   1) 1000
  (   2) 20
  (   3) 24
  (   4) 25
  (   5) 29
  (   6) 44
  (   7) 46
  (   8) 118
sending null reply
finished handling null request

As you can see it uses a different sname and there are two requests, while I only see one with the linux client. Of course uid and gid are different too.

Kind regards,
Michael

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

end of thread, other threads:[~2010-08-04  5:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 15:45 Kerberos auth Problem with nfs3/4 Michael Guntsche
2010-08-03 19:43 ` J. Bruce Fields
2010-08-03 20:13   ` Michael Guntsche
2010-08-03 21:19   ` Michael Guntsche
2010-08-03 21:36     ` J. Bruce Fields
2010-08-03 21:55       ` Michael Guntsche
2010-08-03 23:16         ` J. Bruce Fields
2010-08-04  5:29           ` Michael Guntsche
2010-08-03 22:20       ` Michael Guntsche
2010-08-03 23:14         ` J. Bruce Fields
  -- strict thread matches above, loose matches on Subject: below --
2010-08-03 16:27 Michael Guntsche
2010-08-03 19:03 Michael Guntsche
2010-08-03 20:07 ` Andy Adamson

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.