svn commit: samba r8824 - in branches/SAMBA_4_0/source/torture/rpc: .

abartlet at samba.org abartlet at samba.org
Thu Jul 28 07:35:31 GMT 2005


Author: abartlet
Date: 2005-07-28 07:35:30 +0000 (Thu, 28 Jul 2005)
New Revision: 8824

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

Log:
Fix indentation, and don't send 'invalid' LM password.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/torture/rpc/samlogon.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/samlogon.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/samlogon.c	2005-07-28 07:34:51 UTC (rev 8823)
+++ branches/SAMBA_4_0/source/torture/rpc/samlogon.c	2005-07-28 07:35:30 UTC (rev 8824)
@@ -1188,7 +1188,9 @@
 	pinfo.identity_info.account_name.string = account_name;
 	pinfo.identity_info.workstation.string = TEST_MACHINE_NAME;
 
-	E_deshash(plain_pass, pinfo.lmpassword.hash);
+	if (!E_deshash(plain_pass, pinfo.lmpassword.hash)) {
+		ZERO_STRUCT(pinfo.lmpassword.hash);
+	}
 	E_md4hash(plain_pass, pinfo.ntpassword.hash);
 
 	if (creds->negotiate_flags & NETLOGON_NEG_ARCFOUR) {
@@ -1202,7 +1204,8 @@
 	printf("Testing netr_LogonSamLogonWithFlags (Interactive Logon)\n");
 
 	status = dcerpc_netr_LogonSamLogonWithFlags(p, fn_ctx, &r);
-	if (!r.out.return_authenticator || !creds_client_check(creds, &r.out.return_authenticator->cred)) {
+	if (!r.out.return_authenticator 
+	    || !creds_client_check(creds, &r.out.return_authenticator->cred)) {
 		printf("Credential chaining failed\n");
 		talloc_free(fn_ctx);
 		return False;
@@ -1211,7 +1214,8 @@
 	talloc_free(fn_ctx);
 
 	if (!NT_STATUS_IS_OK(status)) {
-		printf("[%s]\\[%s] netr_LogonSamLogonWithFlags - %s\n", account_name, account_domain, nt_errstr(status));
+		printf("[%s]\\[%s] netr_LogonSamLogonWithFlags - %s\n", 
+		       account_name, account_domain, nt_errstr(status));
 		return False;
 	}
 



More information about the samba-cvs mailing list