From: Noel Power Date: Sun, 24 Sep 2023 00:03:37 +0000 (+0100) Subject: s4/torture: Test with level 4 with NETLOGON_CONTROL_SET_DBFLAG function X-Git-Tag: tdb-1.4.11~479 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a27525e555c2c88f3b3bbef17d6e803a3a231d2b;p=thirdparty%2Fsamba.git s4/torture: Test with level 4 with NETLOGON_CONTROL_SET_DBFLAG function Change levels tested from 1 - 3 to 1 - 4 for NETLOGON_CONTROL_SET_DBFLAG This change triggers a core dump in the server and so we add a knownfail here. Following commit will fix (and remove known fail) BUG: https://bugzilla.samba.org/show_bug.cgi?id=15465 Signed-off-by: Noel Power Reviewed-by: Douglas Bagnall --- diff --git a/selftest/knownfail.d/netlogon.admin b/selftest/knownfail.d/netlogon.admin new file mode 100644 index 00000000000..054eefb3186 --- /dev/null +++ b/selftest/knownfail.d/netlogon.admin @@ -0,0 +1 @@ +^samba3.rpc.netlogon.admin.admin.LogonControl2Ex.nt4_dc diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 8e37e1a643e..1f04af119ac 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -3993,6 +3993,7 @@ static bool test_DatabaseSync2(struct torture_context *tctx, /* try a netlogon LogonControl2Ex */ + static bool test_LogonControl2Ex(struct torture_context *tctx, struct dcerpc_pipe *p, struct cli_credentials *machine_credentials) @@ -4066,7 +4067,7 @@ static bool test_LogonControl2Ex(struct torture_context *tctx, r.in.function_code = NETLOGON_CONTROL_SET_DBFLAG; r.in.data = &data; - for (i=1;i<4;i++) { + for (i=1;i<=4;i++) { r.in.level = i; torture_comment(tctx, "Testing LogonControl2Ex function code %s (%d) level %d\n",