r8702: fixed ntlm_auth build. Andrew, can you check I got this right?
authorAndrew Tridgell <tridge@samba.org>
Fri, 22 Jul 2005 04:30:11 +0000 (04:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:55 +0000 (13:29 -0500)
(This used to be commit 3c12b46e320412e4746fced7e2898f892e815118)

source4/utils/ntlm_auth.c

index fe857f3bc8df8cc69270c4e26874988d198cd833..809f15517416e0ba6f151c46e72c6e8f8b11809c 100644 (file)
@@ -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,