diff options
author | Günther Deschner <gd@samba.org> | 2008-11-05 11:15:08 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-10 21:46:29 +0100 |
commit | bab255f09b1f20a4bbb0ec6806af4551a187b4a1 (patch) | |
tree | a2c82df0276cb81da0b5e7fbc55af0ae5d269707 | |
parent | 68a2ca11dc6b99d9127e964642e7d018acac0881 (diff) | |
download | samba-bab255f09b1f20a4bbb0ec6806af4551a187b4a1.tar.gz samba-bab255f09b1f20a4bbb0ec6806af4551a187b4a1.tar.bz2 samba-bab255f09b1f20a4bbb0ec6806af4551a187b4a1.zip |
s4-samr: merge samr_QueryDisplayInfo3 from s3 idl. (fixme: python)
Guenther
-rw-r--r-- | librpc/idl/samr.idl | 6 | ||||
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 6 | ||||
-rw-r--r-- | source4/torture/rpc/samr.c | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/librpc/idl/samr.idl b/librpc/idl/samr.idl index 453908546d..f57571f0e1 100644 --- a/librpc/idl/samr.idl +++ b/librpc/idl/samr.idl @@ -1267,9 +1267,9 @@ import "misc.idl", "lsa.idl", "security.idl"; [in] uint32 start_idx, [in] uint32 max_entries, [in] uint32 buf_size, - [out] uint32 total_size, - [out] uint32 returned_size, - [out,switch_is(level)] samr_DispInfo info + [out,ref] uint32 *total_size, + [out,ref] uint32 *returned_size, + [out,ref,switch_is(level)] samr_DispInfo *info ); /************************/ diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 0f16320a8c..25c160135b 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -4114,9 +4114,9 @@ static NTSTATUS dcesrv_samr_QueryDisplayInfo3(struct dcesrv_call_state *dce_call result = dcesrv_samr_QueryDisplayInfo(dce_call, mem_ctx, &q); - r->out.total_size = q.out.total_size; - r->out.returned_size = q.out.returned_size; - r->out.info = q.out.info; + *r->out.total_size = q.out.total_size; + *r->out.returned_size = q.out.returned_size; + *r->out.info = q.out.info; return result; } diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index b3002c9ab3..0858b48944 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -3832,6 +3832,9 @@ static bool test_QueryDisplayInfo3(struct dcerpc_pipe *p, struct torture_context bool ret = true; uint16_t levels[] = {1, 2, 3, 4, 5}; int i; + uint32_t total_size; + uint32_t returned_size; + union samr_DispInfo info; for (i=0;i<ARRAY_SIZE(levels);i++) { torture_comment(tctx, "Testing QueryDisplayInfo3 level %u\n", levels[i]); @@ -3841,6 +3844,9 @@ static bool test_QueryDisplayInfo3(struct dcerpc_pipe *p, struct torture_context r.in.start_idx = 0; r.in.max_entries = 1000; r.in.buf_size = (uint32_t)-1; + r.out.total_size = &total_size; + r.out.returned_size = &returned_size; + r.out.info = &info; status = dcerpc_samr_QueryDisplayInfo3(p, tctx, &r); if (!NT_STATUS_IS_OK(status)) { |