diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-22 04:30:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:55 -0500 |
commit | 4d28d20a02da7b2174e7f3f819565c55be681262 (patch) | |
tree | 22de9a831326704232fbd36fb87beae530edd864 | |
parent | cd882fc78dfc228d845d2c13ed5afa3fb2d67073 (diff) | |
download | samba-4d28d20a02da7b2174e7f3f819565c55be681262.tar.gz samba-4d28d20a02da7b2174e7f3f819565c55be681262.tar.bz2 samba-4d28d20a02da7b2174e7f3f819565c55be681262.zip |
r8702: fixed ntlm_auth build. Andrew, can you check I got this right?
(This used to be commit 3c12b46e320412e4746fced7e2898f892e815118)
-rw-r--r-- | source4/utils/ntlm_auth.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c index fe857f3bc8..809f155174 100644 --- a/source4/utils/ntlm_auth.c +++ b/source4/utils/ntlm_auth.c @@ -153,27 +153,26 @@ static NTSTATUS local_pw_check_specified(const char *username, char **unix_name) { NTSTATUS nt_status; - uint8_t lm_pw[16], nt_pw[16]; - uint8_t *lm_pwd, *nt_pwd; + struct samr_Password lm_pw, nt_pw; + struct samr_Password *lm_pwd, *nt_pwd; TALLOC_CTX *mem_ctx = talloc_init("local_pw_check_specified"); if (!mem_ctx) { nt_status = NT_STATUS_NO_MEMORY; } else { - E_md4hash(opt_password, nt_pw); - if (E_deshash(opt_password, lm_pw)) { - lm_pwd = lm_pw; + E_md4hash(opt_password, nt_pw.hash); + if (E_deshash(opt_password, lm_pw.hash)) { + lm_pwd = &lm_pw; } else { lm_pwd = NULL; } - nt_pwd = nt_pw; + nt_pwd = &nt_pw; nt_status = ntlm_password_check(mem_ctx, challenge, lm_response, nt_response, - NULL, NULL, username, username, domain, |