Commit 9924c0fa authored by Martijn de Gouw's avatar Martijn de Gouw Committed by Ben Hutchings

cifs: set MAY_SIGN when sec=krb5

commit 0b7bc840 upstream.

Setting this secFlg allows usage of dfs where some servers require
signing and others don't.
Signed-off-by: default avatarMartijn de Gouw <martijn.de.gouw@prodrive.nl>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
[Joseph Salisbury: This backport was done so including mainline commit
8830d7e0 is not needed.]
BugLink: http://bugs.launchpad.net/bugs/1285723Signed-off-by: default avatarJoseph Salisbury <joseph.salisbury@canonical.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent ffbd2b62
...@@ -1113,7 +1113,8 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, ...@@ -1113,7 +1113,8 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
cERROR(1, "Krb5 cifs privacy not supported"); cERROR(1, "Krb5 cifs privacy not supported");
goto cifs_parse_mount_err; goto cifs_parse_mount_err;
} else if (strnicmp(value, "krb5", 4) == 0) { } else if (strnicmp(value, "krb5", 4) == 0) {
vol->secFlg |= CIFSSEC_MAY_KRB5; vol->secFlg |= CIFSSEC_MAY_KRB5 |
CIFSSEC_MAY_SIGN;
} else if (strnicmp(value, "ntlmsspi", 8) == 0) { } else if (strnicmp(value, "ntlmsspi", 8) == 0) {
vol->secFlg |= CIFSSEC_MAY_NTLMSSP | vol->secFlg |= CIFSSEC_MAY_NTLMSSP |
CIFSSEC_MUST_SIGN; CIFSSEC_MUST_SIGN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment