]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: try SECINFO_NO_NAME flavs until one works
authorWeston Andros Adamson <dros@netapp.com>
Tue, 24 Sep 2013 17:58:02 +0000 (13:58 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 29 Sep 2013 20:03:34 +0000 (16:03 -0400)
commitfd863b133d1b5192dbdf811acc2ac7b27ec59ea9
treec90dad345ab5c10e63fff95942f03d8d4ab62276
parentdcc8ab00601accf1b23b10cab1a50884e6650a8e
NFSv4.1: try SECINFO_NO_NAME flavs until one works

Call nfs4_lookup_root_sec for each flavor returned by SECINFO_NO_NAME until
one works.

One example of a situation this fixes:

 - server configured for krb5
 - server principal somehow gets deleted from KDC
 - server still thinking krb is good, sends krb5 as first entry in
    SECINFO_NO_NAME response
 - client tries krb5, but this fails without even sending an RPC because
    gssd's requests to the KDC can't find the server's principal

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c