summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMatthew Chapman <matty@samba.org>1999-07-22 10:55:23 +0000
committerMatthew Chapman <matty@samba.org>1999-07-22 10:55:23 +0000
commitd0d85964da9df97a1a1a1bb7ad59468aca26b258 (patch)
tree62f70e859f19708d0322a9827f002b070a66bd6b /source3
parent61b92043da228b911010c07279f98833d4ca31ef (diff)
downloadsamba-d0d85964da9df97a1a1a1bb7ad59468aca26b258.tar.gz
samba-d0d85964da9df97a1a1a1bb7ad59468aca26b258.tar.bz2
samba-d0d85964da9df97a1a1a1bb7ad59468aca26b258.zip
BDC support.
(This used to be commit 05a2687b7c3a8c29ea4807b14f928213892509ec)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/display.c13
1 files changed, 8 insertions, 5 deletions
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;