From: Andrew Bartlett Date: Mon, 20 Aug 2001 22:01:44 +0000 (+0000) Subject: Add comment to clarify why we call this twice. X-Git-Tag: samba-2.2.5pre1~1555^2~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afece03d023b2905c27e147516b61487a7503028;p=thirdparty%2Fsamba.git Add comment to clarify why we call this twice. --- diff --git a/source/auth/auth.c b/source/auth/auth.c index cb0d54bf9b6..d33bc225e63 100644 --- a/source/auth/auth.c +++ b/source/auth/auth.c @@ -230,6 +230,8 @@ BOOL password_ok(char *user, char *password, int pwlen) return False; } + /* The password could be either NTLM or plain LM. Try NTLM first, but fall-through as + required. */ if (pass_check_smb(user, lp_workgroup(), NULL, 0, password, pwlen) == NT_STATUS_NOPROBLEMO) { return True; } diff --git a/source/smbd/auth.c b/source/smbd/auth.c index cb0d54bf9b6..d33bc225e63 100644 --- a/source/smbd/auth.c +++ b/source/smbd/auth.c @@ -230,6 +230,8 @@ BOOL password_ok(char *user, char *password, int pwlen) return False; } + /* The password could be either NTLM or plain LM. Try NTLM first, but fall-through as + required. */ if (pass_check_smb(user, lp_workgroup(), NULL, 0, password, pwlen) == NT_STATUS_NOPROBLEMO) { return True; }