]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Correctly assert that we found a LOGON_INFO PAC buffer
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 24 Aug 2023 22:53:00 +0000 (10:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 Aug 2023 02:15:29 +0000 (02:15 +0000)
Because ‘found_logon_info’ was invariably true, we would miss the case
in which set_pac_sids() failed to accomplish anything, having been
unable to find the LOGON_INFO PAC buffer.

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

index e2eea2100739ea4b7369acee71b0310859dae609..87de2fd50323df12b1883142922431eda290e968 100644 (file)
@@ -1603,7 +1603,7 @@ class KDCBaseTest(TestCaseInTempDir, RawKerberosTest):
             else:
                 self.fail(f'invalid SID type {sid_type}')
 
-        found_logon_info = True
+        found_logon_info = False
 
         pac_buffers = pac.buffers
         for pac_buffer in pac_buffers: