From 4d28d20a02da7b2174e7f3f819565c55be681262 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 22 Jul 2005 04:30:11 +0000 Subject: r8702: fixed ntlm_auth build. Andrew, can you check I got this right? (This used to be commit 3c12b46e320412e4746fced7e2898f892e815118) --- source4/utils/ntlm_auth.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'source4/utils') 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, -- cgit