]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: For NTLM make sure we have CRED_USE_KERBEROS_DESIRED
authorAndreas Schneider <asn@samba.org>
Wed, 16 Dec 2020 09:56:23 +0000 (10:56 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Jun 2021 00:34:38 +0000 (00:34 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/remote_pac.c

index c74746123fe53fab601d28a77a2babbeb10631d2..2894badc8e96341b8d17f636c6a578739503b226 100644 (file)
@@ -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);