From: Stefan Metzmacher Date: Wed, 27 Nov 2024 11:18:36 +0000 (+0100) Subject: s4:torture/rpc: prepare lsa lookup tests for ServerAuthenticateKerberos X-Git-Tag: tdb-1.4.13~164 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e66ca2fde1a117b31a22f740d90b1599603d6523;p=thirdparty%2Fsamba.git s4:torture/rpc: prepare lsa lookup tests for ServerAuthenticateKerberos Signed-off-by: Stefan Metzmacher Reviewed-by: Jennifer Sutton --- diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index ab672f41d54..bac0f29695e 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -1123,7 +1123,7 @@ static bool test_LookupSids3_fail(struct dcerpc_binding_handle *b, if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_ACCESS_DENIED) || NT_STATUS_EQUAL(r.out.result, NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED)) { torture_comment(tctx, - "LookupNames4 correctly returned with " + "LookupSids3 correctly returned with " "result: %s\n", nt_errstr(r.out.result)); return true; @@ -1218,6 +1218,15 @@ bool test_many_LookupSids(struct dcerpc_pipe *p, if (!test_LookupNames4(b, tctx, level, &names, true)) { return false; } + } else if (auth_type == DCERPC_AUTH_TYPE_KRB5 && + auth_level == DCERPC_AUTH_LEVEL_PRIVACY) + { + if (!test_LookupSids3(b, tctx, level, &sids)) { + return false; + } + if (!test_LookupNames4(b, tctx, level, &names, true)) { + return false; + } } else { /* * If we don't have a secure channel these tests must