Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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
3f618223dc0bdcbc8d510350e78ee2195ff93768

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

Reported-by: Panos Kavalagios <Panagiotis.Kavalagios@eurodyn.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>

authored by

Sachin Prabhu and committed by
Steve French
dde2356c 2f6c9479

+2 -2
+2 -2
fs/cifs/sess.c
··· 500 500 return NTLMv2; 501 501 if (global_secflags & CIFSSEC_MAY_NTLM) 502 502 return NTLM; 503 - /* Fallthrough */ 504 503 default: 505 - return Unspecified; 504 + /* Fallthrough to attempt LANMAN authentication next */ 505 + break; 506 506 } 507 507 case CIFS_NEGFLAVOR_LANMAN: 508 508 switch (requested) {