From: Jeff Layton Date: Fri, 24 May 2013 11:40:04 +0000 (-0400) Subject: cifs: allow sec=none mounts to work against servers that don't support extended security X-Git-Tag: next-20130527~81^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6de3ea2828d39234fd08c41aa82ba707c637ceae;p=karo-tx-linux.git cifs: allow sec=none mounts to work against servers that don't support extended security In the case of sec=none, we're not sending a username or password, so there's little benefit to mandating NTLMSSP auth. Allow it to use unencapsulated auth in that case. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 99eeaa17ee00..0a7fdc31f253 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1061,6 +1061,7 @@ static int cifs_parse_security_flavors(char *value, #endif case Opt_sec_none: vol->nullauth = 1; + vol->secFlg |= CIFSSEC_MAY_NTLM; break; default: cifs_dbg(VFS, "bad security option: %s\n", value);