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

metze at samba.org metze at samba.org
Tue Mar 22 14:45:43 GMT 2005


Author: metze
Date: 2005-03-22 14:45:43 +0000 (Tue, 22 Mar 2005)
New Revision: 5947

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

Log:
print out the password hashes when -d 100 is in use,
very usefull for creating a keytab file with

metze

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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/samsync.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/samsync.c	2005-03-22 14:44:16 UTC (rev 5946)
+++ branches/SAMBA_4_0/source/torture/rpc/samsync.c	2005-03-22 14:45:43 UTC (rev 5947)
@@ -524,6 +524,15 @@
 		}
 	}
 
+	if (nt_hash_p) {
+		DATA_BLOB nt_hash_blob = data_blob_const(nt_hash_p, 16);
+		DEBUG(100,("ACCOUNT [%s\\%-25s] NTHASH %s\n", samsync_state->domain_name[0], username, data_blob_hex_string(mem_ctx, &nt_hash_blob)));
+	}
+	if (lm_hash_p) {
+		DATA_BLOB lm_hash_blob = data_blob_const(lm_hash_p, 16);
+		DEBUG(100,("ACCOUNT [%s\\%-25s] LMHASH %s\n", samsync_state->domain_name[0], username, data_blob_hex_string(mem_ctx, &lm_hash_blob)));
+	}
+
 	nt_status = test_SamLogon(samsync_state->p_netlogon_wksta, mem_ctx, samsync_state->creds_netlogon_wksta, 
 				  domain,
 				  username, 



More information about the samba-cvs mailing list