diff options
author | Matthew Chapman <matty@samba.org> | 1999-03-19 15:11:07 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-03-19 15:11:07 +0000 |
commit | 55bce9e30e410e7c6e1209493a59238ff462e996 (patch) | |
tree | 741a3160853ee69cb68e7f20a5f8dff695f61612 /source3/rpc_client | |
parent | b5a5236f207867d52acb8573d69c92a7691b2d3f (diff) | |
download | samba-55bce9e30e410e7c6e1209493a59238ff462e996.tar.gz samba-55bce9e30e410e7c6e1209493a59238ff462e996.tar.bz2 samba-55bce9e30e410e7c6e1209493a59238ff462e996.zip |
querysecret now shows the real, fairdinkum, decrypted secret :-)
(This used to be commit 5951e16a1134a559abefdd400e7a17627338f368)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_lsarpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index ca3ee49d3b..e24f9140e4 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -158,8 +158,8 @@ BOOL lsa_open_secret(struct cli_state *cli, uint16 fnum, do a LSA Query Secret ****************************************************************************/ BOOL lsa_query_secret(struct cli_state *cli, uint16 fnum, - POLICY_HND *pol, unsigned char secret[24], - NTTIME *lastupdate) + POLICY_HND *pol, STRING2 *enc_secret, + NTTIME *last_update) { prs_struct rbuf; prs_struct buf; @@ -200,8 +200,8 @@ BOOL lsa_query_secret(struct cli_state *cli, uint16 fnum, (r_q.info.value.ptr_secret != 0) && (r_q.info.ptr_update != 0)) { - memcpy(secret, r_q.info.value.secret.buffer, 24); - memcpy(lastupdate, &(r_q.info.last_update), sizeof(NTTIME)); + memcpy(enc_secret, &(r_q.info.value.enc_secret), sizeof(STRING2)); + memcpy(last_update, &(r_q.info.last_update), sizeof(NTTIME)); valid_info = True; } } |