git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e4d90
)
s4:torture/rpc/netlogon: test invalid netr_LogonControl() level
author
Stefan Metzmacher
<metze@samba.org>
Tue, 1 Feb 2011 11:44:59 +0000
(12:44 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 2 Feb 2011 10:58:26 +0000
(11:58 +0100)
metze
source4/torture/rpc/netlogon.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/netlogon.c
b/source4/torture/rpc/netlogon.c
index 59bcd58245c5dfceb370fbfcc762b0a434695f15..ae97affe0b711c7a3c031f58cb1c768ef9be25ab 100644
(file)
--- 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;
}