mirror of
https://github.com/samba-team/samba.git
synced 2025-01-18 06:04:06 +03:00
s4:torture/rpc: let test_netlogon_capabilities() fail on legacy servers
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
fd4b027511
commit
498fc88c15
@ -2112,10 +2112,10 @@ bool test_netlogon_capabilities(struct dcerpc_pipe *p, struct torture_context *t
|
|||||||
netlogon_creds_client_authenticator(&tmp_creds, &auth);
|
netlogon_creds_client_authenticator(&tmp_creds, &auth);
|
||||||
|
|
||||||
status = dcerpc_netr_LogonGetCapabilities_r(b, tctx, &r);
|
status = dcerpc_netr_LogonGetCapabilities_r(b, tctx, &r);
|
||||||
torture_assert_ntstatus_ok(tctx, status, "LogonGetCapabilities failed");
|
torture_assert_ntstatus_ok(tctx, status,
|
||||||
if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_NOT_IMPLEMENTED)) {
|
"LogonGetCapabilities query_level=1 failed");
|
||||||
return true;
|
torture_assert_ntstatus_ok(tctx, r.out.result,
|
||||||
}
|
"LogonGetCapabilities query_level=1 failed");
|
||||||
|
|
||||||
*creds = tmp_creds;
|
*creds = tmp_creds;
|
||||||
|
|
||||||
@ -2143,15 +2143,10 @@ bool test_netlogon_capabilities(struct dcerpc_pipe *p, struct torture_context *t
|
|||||||
netlogon_creds_client_authenticator(&tmp_creds, &auth);
|
netlogon_creds_client_authenticator(&tmp_creds, &auth);
|
||||||
|
|
||||||
status = dcerpc_netr_LogonGetCapabilities_r(b, tctx, &r);
|
status = dcerpc_netr_LogonGetCapabilities_r(b, tctx, &r);
|
||||||
if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE)) {
|
torture_assert_ntstatus_ok(tctx, status,
|
||||||
/*
|
"LogonGetCapabilities query_level=2 failed");
|
||||||
* an server without KB5028166 returns
|
torture_assert_ntstatus_ok(tctx, r.out.result,
|
||||||
* DCERPC_NCA_S_FAULT_INVALID_TAG =>
|
"LogonGetCapabilities query_level=2 failed");
|
||||||
* NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE
|
|
||||||
*/
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
torture_assert_ntstatus_ok(tctx, status, "LogonGetCapabilities query_level=2 failed");
|
|
||||||
|
|
||||||
*creds = tmp_creds;
|
*creds = tmp_creds;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user