diff options
author | Günther Deschner <gd@samba.org> | 2008-10-27 16:14:28 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-28 23:40:52 +0100 |
commit | 2a329c496379d1b94fa9d83b4fc1fc1921636512 (patch) | |
tree | 5afef8aba42851ca3fcdf08f509b7cb692fa7e62 | |
parent | 2a7de4e3f802f1a180132f766ce2c5effd971dc2 (diff) | |
download | samba-2a329c496379d1b94fa9d83b4fc1fc1921636512.tar.gz samba-2a329c496379d1b94fa9d83b4fc1fc1921636512.tar.bz2 samba-2a329c496379d1b94fa9d83b4fc1fc1921636512.zip |
s4-netlogon: merge netr_DsRGetSiteName from s3 idl.
Guenther
-rw-r--r-- | source4/librpc/idl/netlogon.idl | 2 | ||||
-rw-r--r-- | source4/torture/rpc/netlogon.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/librpc/idl/netlogon.idl b/source4/librpc/idl/netlogon.idl index 2ddf78de31..23be2e5667 100644 --- a/source4/librpc/idl/netlogon.idl +++ b/source4/librpc/idl/netlogon.idl @@ -1130,7 +1130,7 @@ interface netlogon /* Function 0x1c */ WERROR netr_DsRGetSiteName( [in,unique] [string,charset(UTF16)] uint16 *computer_name, - [out,unique] [string,charset(UTF16)] uint16 *site + [out,ref] [string,charset(UTF16)] uint16 **site ); /****************/ diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 7f0f60cd32..378f9a21d5 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -1230,17 +1230,19 @@ static bool test_netr_DsRGetSiteName(struct dcerpc_pipe *p, struct torture_conte { NTSTATUS status; struct netr_DsRGetSiteName r; + const char *site = NULL; if (torture_setting_bool(tctx, "samba4", false)) torture_skip(tctx, "skipping DsRGetSiteName test against Samba4"); r.in.computer_name = computer_name; + r.out.site = &site; torture_comment(tctx, "Testing netr_DsRGetSiteName\n"); status = dcerpc_netr_DsRGetSiteName(p, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "DsRGetSiteName"); torture_assert_werr_ok(tctx, r.out.result, "DsRGetSiteName"); - torture_assert_str_equal(tctx, expected_site, r.out.site, "netr_DsRGetSiteName"); + torture_assert_str_equal(tctx, expected_site, site, "netr_DsRGetSiteName"); r.in.computer_name = talloc_asprintf(tctx, "\\\\%s", computer_name); torture_comment(tctx, |