summaryrefslogtreecommitdiff
path: root/source3/pipentlsa.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-27 17:04:15 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-27 17:04:15 +0000
commit13291ce01db2469db7c3f80f7e59ce3702170e7c (patch)
treec7872b408417186644b37a6169d5ff11b1c39fb6 /source3/pipentlsa.c
parentf868196c1db2e4559960a1ded81afad7dd873beb (diff)
downloadsamba-13291ce01db2469db7c3f80f7e59ce3702170e7c.tar.gz
samba-13291ce01db2469db7c3f80f7e59ce3702170e7c.tar.bz2
samba-13291ce01db2469db7c3f80f7e59ce3702170e7c.zip
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)
Diffstat (limited to 'source3/pipentlsa.c')
-rw-r--r--source3/pipentlsa.c8
1 files changed, 6 insertions, 2 deletions
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);