svn commit: samba r8702 - in branches/SAMBA_4_0/source/utils: .

tridge at samba.org tridge at samba.org
Fri Jul 22 04:30:12 GMT 2005


Author: tridge
Date: 2005-07-22 04:30:11 +0000 (Fri, 22 Jul 2005)
New Revision: 8702

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8702

Log:
fixed ntlm_auth build. Andrew, can you check I got this right?



Modified:
   branches/SAMBA_4_0/source/utils/ntlm_auth.c


Changeset:
Modified: branches/SAMBA_4_0/source/utils/ntlm_auth.c
===================================================================
--- branches/SAMBA_4_0/source/utils/ntlm_auth.c	2005-07-22 04:18:16 UTC (rev 8701)
+++ branches/SAMBA_4_0/source/utils/ntlm_auth.c	2005-07-22 04:30:11 UTC (rev 8702)
@@ -153,27 +153,26 @@
 					 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,



More information about the samba-cvs mailing list