]> git.ipfire.org Git - thirdparty/samba.git/commit
s4/torture: Prepare to handle Level 4 check with unknown func code
authorNoel Power <noel.power@suse.com>
Mon, 25 Sep 2023 09:30:30 +0000 (10:30 +0100)
committerNoel Power <npower@samba.org>
Tue, 4 Jun 2024 08:33:32 +0000 (08:33 +0000)
commit1297c7ca65ba485febee4eabe32a8e1c793b187c
tree1b290ead00a89128f4580d70a0505772474f34e9
parent6b3135078e0f6c67566f4312998bc4032e387e19
s4/torture: Prepare to handle Level 4 check with unknown func code

A future (next) commit will change the NETLOGON_CONTROL_SET_DBFLAG test
to use levels 1 - 4 (current test just tests 1 - 3). A side affect of
this test is that the following test will now test passing an unknown
function code against against Level 4 (previously level 3).

Unfortunately s4 and s3 netlogon server results differ when handling
a level 4 request with an unknown function code.
  s3 server returns WERR_NOT_SUPPORTED and
  s4 server returns WERR_INVALID_PARAMETER.

For level 3 both return WERR_NOT_SUPPORTED.

MS-NRPC doesn't seem to specifically indicate the required response in
this case.

this commit modifies the test to cater for either response (for either
level) A future commit could explore the test response combinations more
thorougly.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15465
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/torture/rpc/netlogon.c