56f4eb8
From dde2356c8466298bd77fa699e0ea296372eed47b Mon Sep 17 00:00:00 2001
56f4eb8
From: Sachin Prabhu <sprabhu@redhat.com>
56f4eb8
Date: Fri, 27 Sep 2013 17:35:42 +0000
56f4eb8
Subject: cifs: Allow LANMAN auth method for servers supporting unencapsulated authentication methods
56f4eb8
56f4eb8
This allows users to use LANMAN authentication on servers which support
56f4eb8
unencapsulated authentication.
56f4eb8
56f4eb8
The patch fixes a regression where users using plaintext authentication
56f4eb8
were no longer able to do so because of changed bought in by patch
56f4eb8
3f618223dc0bdcbc8d510350e78ee2195ff93768
56f4eb8
56f4eb8
https://bugzilla.redhat.com/show_bug.cgi?id=1011621
56f4eb8
56f4eb8
Reported-by: Panos Kavalagios <Panagiotis.Kavalagios@eurodyn.com>
56f4eb8
Reviewed-by: Jeff Layton <jlayton@redhat.com>
56f4eb8
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
56f4eb8
Signed-off-by: Steve French <smfrench@gmail.com>
56f4eb8
---
56f4eb8
(limited to 'fs/cifs')
56f4eb8
56f4eb8
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
56f4eb8
index 352358d..e87387d 100644
56f4eb8
--- a/fs/cifs/sess.c
56f4eb8
+++ b/fs/cifs/sess.c
56f4eb8
@@ -500,9 +500,9 @@ select_sectype(struct TCP_Server_Info *server, enum securityEnum requested)
56f4eb8
 				return NTLMv2;
56f4eb8
 			if (global_secflags & CIFSSEC_MAY_NTLM)
56f4eb8
 				return NTLM;
56f4eb8
-			/* Fallthrough */
56f4eb8
 		default:
56f4eb8
-			return Unspecified;
56f4eb8
+			/* Fallthrough to attempt LANMAN authentication next */
56f4eb8
+			break;
56f4eb8
 		}
56f4eb8
 	case CIFS_NEGFLAVOR_LANMAN:
56f4eb8
 		switch (requested) {
56f4eb8
--
56f4eb8
cgit v0.9.2