From 13291ce01db2469db7c3f80f7e59ce3702170e7c Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 27 Oct 1997 17:04:15 +0000 Subject: added LSA Query Info Policy. fixed a problem with byte ordering (doing an SIVAL of the setup parameters which was _also_ being done in the creation of the SMB header. oops). (This used to be commit 541fb82895008cc30477019cdcafed9fdbbeac43) --- source3/pipentlsa.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/pipentlsa.c') diff --git a/source3/pipentlsa.c b/source3/pipentlsa.c index 4fc61f8e5b..cf40ccc7af 100644 --- a/source3/pipentlsa.c +++ b/source3/pipentlsa.c @@ -237,8 +237,12 @@ api_lsa_open_policy static void api_lsa_open_policy( char *param, char *data, char **rdata, int *rdata_len ) { - /* we might actually want to decode the query, but it's not necessary */ - /* lsa_io_q_open_policy(...); */ + LSA_Q_OPEN_POL q_o; + + /* grab the server, object attributes and desired access flag...*/ + lsa_io_q_open_pol(True, &q_o, data + 0x18, data, 4, 0); + + /* lkclXXXX having decoded it, ignore all fields in the open policy! */ /* return a 20 byte policy handle */ *rdata_len = lsa_reply_open_policy(*rdata + 0x18, *rdata); -- cgit