]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Fix sending PA-PAC-OPTIONS and PA-PAC-REQUEST
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 29 Sep 2021 21:51:01 +0000 (10:51 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Oct 2021 18:59:31 +0000 (18:59 +0000)
These padata were not being sent if other FAST padata was not specified.

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

index 1119c9926d788c90d1b6621f1a9c44add5463bfc..ceff1b6220e5b951151fb7db4477d7219cdcb84c 100644 (file)
@@ -1801,8 +1801,6 @@ class RawKerberosTest(TestCaseInTempDir):
             fast_padata, req_body = generate_fast_padata_fn(kdc_exchange_dict,
                                                             callback_dict,
                                                             req_body)
-
-            fast_padata += additional_padata
         else:
             fast_padata = []
 
@@ -1847,6 +1845,7 @@ class RawKerberosTest(TestCaseInTempDir):
                                             KU_FAST_REQ_CHKSUM,
                                             checksum_blob)
 
+            fast_padata += additional_padata
             fast = generate_fast_fn(kdc_exchange_dict,
                                     callback_dict,
                                     inner_req_body,