Fix up a number of intertwined issues:
[samba.git] / source3 / smbd / auth.c
index 5b6b2d4c42883ba5cfd09b9ee699d48f07bf8b71..6aa2714b0ba859517ef0a2f3b560a57f61631d2f 100644 (file)
@@ -189,6 +189,10 @@ NTSTATUS pass_check_smb_with_chal(char *smb_user, char *unix_user,
                        user_info.lm_resp.buffer = (uint8 *)local_lm_response;
                        user_info.lm_resp.len = 24;
 
+
+                       /* WATCH OUT. This doesn't work if the incoming password is incorrectly cased. 
+                          We might want to add a check here and only do an LM in that case */
+
                        /* This encrypts the lm_pwd feild, which actualy contains the password
                           rather than the nt_pwd field becouse that contains nothing */
                        SMBNTencrypt((uchar *)lm_pwd, user_info.chal, local_nt_response);