summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-01 12:44:59 +0100
committerStefan Metzmacher <metze@samba.org>2011-02-02 11:58:26 +0100
commit89dd048bdfb463c1e9a7393f5298dc0a8125f75f (patch)
tree16cae19bf21618efe6c63b907401de97617d11bf /source4/torture
parentd3e4d90d41b0fdd64bd65a2f440942b478e23e20 (diff)
downloadsamba-89dd048bdfb463c1e9a7393f5298dc0a8125f75f.tar.gz
samba-89dd048bdfb463c1e9a7393f5298dc0a8125f75f.tar.bz2
samba-89dd048bdfb463c1e9a7393f5298dc0a8125f75f.zip
s4:torture/rpc/netlogon: test invalid netr_LogonControl() level
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/netlogon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index 59bcd58245..ae97affe0b 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -1862,6 +1862,13 @@ static bool test_LogonControl(struct torture_context *tctx,
}
}
+ r.in.level = 52;
+ torture_comment(tctx, "Testing LogonControl function code %s (%d) level %d\n",
+ function_code_str(tctx, r.in.function_code), r.in.function_code, r.in.level);
+ status = dcerpc_netr_LogonControl_r(b, tctx, &r);
+ torture_assert_ntstatus_ok(tctx, status, "LogonControl");
+ torture_assert_werr_equal(tctx, r.out.result, WERR_INVALID_LEVEL, "LogonControl");
+
return true;
}