Some patches to authentication:
[vlendec/samba-autobuild/.git] / source3 / auth / auth_sam.c
index 33b062364323a2622c50a6b77e0a6570c3f1b6e7..111a35e06876cf1dad5288dfeb6fb2ebfe994a1a 100644 (file)
@@ -152,7 +152,7 @@ NTSTATUS smb_password_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *use
                        if (smb_pwd_check_ntlmv2( user_info->nt_resp.buffer, 
                                                  user_info->nt_resp.len, 
                                                  nt_pw, 
-                                                 user_info->chal, user_info->requested_username.str, 
+                                                 user_info->chal, user_info->smb_username.str, 
                                                  user_info->requested_domain.str,
                                                  (char *)server_info->session_key))
                        {