Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dde2356c authored by Sachin Prabhu's avatar Sachin Prabhu Committed by Steve French
Browse files

cifs: Allow LANMAN auth method for servers supporting unencapsulated authentication methods

This allows users to use LANMAN authentication on servers which support
unencapsulated authentication.

The patch fixes a regression where users using plaintext authentication
were no longer able to do so because of changed bought in by patch
3f618223

https://bugzilla.redhat.com/show_bug.cgi?id=1011621



Reported-by: default avatarPanos Kavalagios <Panagiotis.Kavalagios@eurodyn.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSachin Prabhu <sprabhu@redhat.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent 2f6c9479
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -500,9 +500,9 @@ select_sectype(struct TCP_Server_Info *server, enum securityEnum requested)
				return NTLMv2;
			if (global_secflags & CIFSSEC_MAY_NTLM)
				return NTLM;
			/* Fallthrough */
		default:
			return Unspecified;
			/* Fallthrough to attempt LANMAN authentication next */
			break;
		}
	case CIFS_NEGFLAVOR_LANMAN:
		switch (requested) {