diff options
-rw-r--r-- | source3/auth/auth.c | 2 | ||||
-rw-r--r-- | source3/smbd/auth.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c index cb0d54bf9b..d33bc225e6 100644 --- a/source3/auth/auth.c +++ b/source3/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/source3/smbd/auth.c b/source3/smbd/auth.c index cb0d54bf9b..d33bc225e6 100644 --- a/source3/smbd/auth.c +++ b/source3/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; } |