summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-09-14 04:35:48 +0000
committerTim Potter <tpot@samba.org>2001-09-14 04:35:48 +0000
commitc849bd3196ee52d4f9e3e68435c577481b72548f (patch)
treeccd6844a8683814dfab3f2aa9acbaab7a26137a9 /source3/rpc_parse
parent82a8f8a171e4290cbae3d24069034191bf7f9f47 (diff)
downloadsamba-c849bd3196ee52d4f9e3e68435c577481b72548f.tar.gz
samba-c849bd3196ee52d4f9e3e68435c577481b72548f.tar.bz2
samba-c849bd3196ee52d4f9e3e68435c577481b72548f.zip
Decode 68-byte password blocks using sam replication password key (which
is actually the user session key). (This used to be commit 0f041597f8afa378fc3177264f1e52e014e6cf00)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_net.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index e1a451b7ce..f7dbfb2a57 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/rpc_parse/parse_net.c
@@ -2061,7 +2061,8 @@ static BOOL net_io_sam_account_info(char *desc, uint8 sess_key[16],
if (ps->io)
{
/* reading */
-/* // FIXME prs_hash1(ps, ps->offset, sess_key); */
+ if (!prs_hash1(ps, ps->data_offset, sess_key))
+ return False;
}
if (!net_io_sam_passwd_info("pass", &info->pass,
ps, depth))
@@ -2070,7 +2071,8 @@ static BOOL net_io_sam_account_info(char *desc, uint8 sess_key[16],
if (!ps->io)
{
/* writing */
-/* // FIXME TOO prs_hash1(ps, old_offset, sess_key); */
+ if (!prs_hash1(ps, old_offset, sess_key))
+ return False;
}
}
if (old_offset + len > ps->buffer_size)