summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-25 05:26:48 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-25 05:26:48 +0000
commit75bc1009438c2ff1696205ab0ee5667ec3ef3062 (patch)
tree20e1e500195f01a1caa38d7a84dec0155369c346 /source3/rpc_parse
parentac4dd24140074a43f880c59e61770ef4e7c6523b (diff)
downloadsamba-75bc1009438c2ff1696205ab0ee5667ec3ef3062.tar.gz
samba-75bc1009438c2ff1696205ab0ee5667ec3ef3062.tar.bz2
samba-75bc1009438c2ff1696205ab0ee5667ec3ef3062.zip
cool! completed a samr* API that _would_ look like an msdn samr* api...
if microsoft bothered to publish it. actually, there are good reasons for not publishing it: people might write programs for it, and then those programs wouldn't work on nt5, for example... (This used to be commit 8ce93b80d3b4e1c1e28aa1dde38cdef184eff3c1)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_samr.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index dad9d412e1..50f85ea5f2 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -5671,8 +5671,28 @@ BOOL make_samr_q_set_userinfo(SAMR_Q_SET_USERINFO *q_u,
switch (switch_value)
{
case 0x18:
+ {
+ uchar sess_key[16];
+ if (!cli_get_usr_sesskey(hnd, sess_key))
+ {
+ return False;
+ }
+#ifdef DEBUG_PASSWORD
+ dump_data(100, sess_key, 16);
+#endif
+ SamOEMhash(q_u->info.id24->pass, sess_key, 1);
+ }
case 0x17:
{
+ uchar sess_key[16];
+ if (!cli_get_usr_sesskey(hnd, sess_key))
+ {
+ return False;
+ }
+#ifdef DEBUG_PASSWORD
+ dump_data(100, sess_key, 16);
+#endif
+ SamOEMhash(q_u->info.id23->pass, sess_key, 1);
break;
}
default: