From 0639fe016e56ccd84b05da678219d8bb6c68432c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 13 Jul 2005 15:19:28 +0000 Subject: r8430: readd my hack to display the hashes with -d 100 metze (This used to be commit b3f01ef0df2579decbbb67586157d089f528dd13) --- source4/torture/rpc/samsync.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c index 911f0fe471..2e1e9d8740 100644 --- a/source4/torture/rpc/samsync.c +++ b/source4/torture/rpc/samsync.c @@ -543,6 +543,15 @@ static BOOL samsync_handle_user(TALLOC_CTX *mem_ctx, struct samsync_state *samsy } } + 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, -- cgit