smb3: on kerberos mount if server doesn't specify auth type use krb5
authorSteve French <stfrench@microsoft.com>
Sun, 28 Oct 2018 18:13:23 +0000 (13:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Nov 2018 06:32:44 +0000 (07:32 +0100)
commite6b4e1eeac2cca694678244928eb5d26d251d0d3
tree94dcdd852ec03f44b1c8df3158645ea5a14f2c61
parenta1f82fd7bcec3ad32265fe296bfde4a7fa824507
smb3: on kerberos mount if server doesn't specify auth type use krb5

commit 926674de6705f0f1dbf29a62fd758d0977f535d6 upstream.

Some servers (e.g. Azure) do not include a spnego blob in the SMB3
negotiate protocol response, so on kerberos mounts ("sec=krb5")
we can fail, as we expected the server to list its supported
auth types (OIDs in the spnego blob in the negprot response).
Change this so that on krb5 mounts we default to trying krb5 if the
server doesn't list its supported protocol mechanisms.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifs_spnego.c