From 10caa8590c77ea0929327f005a912241fb4cf423 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 16 Dec 2020 10:56:23 +0100 Subject: [PATCH] s4:torture: For NTLM make sure we have CRED_USE_KERBEROS_DESIRED Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- source4/torture/rpc/remote_pac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/torture/rpc/remote_pac.c b/source4/torture/rpc/remote_pac.c index c74746123fe..2894badc8e9 100644 --- a/source4/torture/rpc/remote_pac.c +++ b/source4/torture/rpc/remote_pac.c @@ -703,6 +703,10 @@ static bool test_S4U2Self(struct torture_context *tctx, client_creds = cli_credentials_shallow_copy(tmp_ctx, popt_get_cmdline_credentials()); torture_assert(tctx, client_creds, "Failed to copy of credentials"); + /* We use cli_credentials_get_ntlm_response(), so relax krb5 requirements. */ + cli_credentials_set_kerberos_state(client_creds, + CRED_USE_KERBEROS_DESIRED, + CRED_SPECIFIED); server_creds = cli_credentials_shallow_copy(tmp_ctx, credentials); -- 2.47.3