diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-03-22 14:45:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:11 -0500 |
commit | 07c705745a208b1e9ce79d99b7c5b340763aab14 (patch) | |
tree | b8ca471aa59c828a8e6843f5b6fd9135b82c0b2d | |
parent | e25cff1c110c5b4380caf5f5fb0336c37da78b10 (diff) | |
download | samba-07c705745a208b1e9ce79d99b7c5b340763aab14.tar.gz samba-07c705745a208b1e9ce79d99b7c5b340763aab14.tar.bz2 samba-07c705745a208b1e9ce79d99b7c5b340763aab14.zip |
r5947: print out the password hashes when -d 100 is in use,
very usefull for creating a keytab file with
metze
(This used to be commit 15b80a28dbf2004f63648fede61e514e55030018)
-rw-r--r-- | source4/torture/rpc/samsync.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c index b8214859cd..96b5cce39f 100644 --- a/source4/torture/rpc/samsync.c +++ b/source4/torture/rpc/samsync.c @@ -524,6 +524,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, |