]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Allow specifying whether to expect a PAC with _test_as_exchange()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 15 Oct 2021 01:27:15 +0000 (14:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 17 Oct 2021 22:53:37 +0000 (22:53 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/raw_testcase.py

index e008223eb23cb6dfb6ac9c24c537e98b5b0ee19e..29dc5f397b6889bde5be3c1aaeacbafbdc7a605d 100644 (file)
@@ -3530,6 +3530,7 @@ class RawKerberosTest(TestCaseInTempDir):
                           ticket_decryption_key=None,
                           pac_request=None,
                           pac_options=None,
+                          expect_pac=True,
                           to_rodc=False):
 
         def _generate_padata_copy(_kdc_exchange_dict,
@@ -3569,6 +3570,7 @@ class RawKerberosTest(TestCaseInTempDir):
             kdc_options=str(kdc_options),
             pac_request=pac_request,
             pac_options=pac_options,
+            expect_pac=expect_pac,
             to_rodc=to_rodc)
 
         rep = self._generic_kdc_exchange(kdc_exchange_dict,