]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Add comment to clarify why we call this twice.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 20 Aug 2001 22:01:44 +0000 (22:01 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Aug 2001 22:01:44 +0000 (22:01 +0000)
source/auth/auth.c
source/smbd/auth.c

index cb0d54bf9b66b24a52f4ffa9c0fdbef124febe05..d33bc225e632cae48a992fbf52667e1c1adc62b6 100644 (file)
@@ -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;
        }
index cb0d54bf9b66b24a52f4ffa9c0fdbef124febe05..d33bc225e632cae48a992fbf52667e1c1adc62b6 100644 (file)
@@ -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;
        }