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)
commit58a8cf1212f0f3b9afb07b73647a2bca4e5a28af
treec90dad345ab5c10e63fff95942f03d8d4ab62276
parentacd65e5bc1986d0089efec3fe63e52ea0c406d6d
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