From d0d85964da9df97a1a1a1bb7ad59468aca26b258 Mon Sep 17 00:00:00 2001 From: Matthew Chapman Date: Thu, 22 Jul 1999 10:55:23 +0000 Subject: BDC support. (This used to be commit 05a2687b7c3a8c29ea4807b14f928213892509ec) --- source3/rpcclient/display.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c index 97e1cc8344..545258b36a 100644 --- a/source3/rpcclient/display.c +++ b/source3/rpcclient/display.c @@ -1936,14 +1936,17 @@ void display_sam_sync_ctr(FILE *out_hnd, enum action_type action, } case 5: { + unsigned char lm_pwd[16]; + unsigned char nt_pwd[16]; + unistr2_to_ascii(name, &(ctr->account_info.uni_acct_name), sizeof(name)-1); fprintf(out_hnd, "Account: %s\n", name); - out_struct(out_hnd, - ctr->account_info.pass.buf_lm_pwd, 16, 8); - out_struct(out_hnd, - ctr->account_info.pass.buf_nt_pwd, 16, 8); - + sam_pwd_hash(ctr->account_info.user_rid, ctr->account_info.pass.buf_lm_pwd, lm_pwd, 0); + out_struct(out_hnd, lm_pwd, 16, 8); + + sam_pwd_hash(ctr->account_info.user_rid, ctr->account_info.pass.buf_nt_pwd, nt_pwd, 0); + out_struct(out_hnd, nt_pwd, 16, 8); } } break; -- cgit