1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

tests/krb5: Allow get_tgt() to request including or omitting a PAC

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>
This commit is contained in:
Joseph Sutton 2021-10-15 14:26:40 +13:00 committed by Andrew Bartlett
parent d23d8e8593
commit e086c6193f

View File

@ -1306,9 +1306,9 @@ class KDCBaseTest(RawKerberosTest):
def get_tgt(self, creds, to_rodc=False, kdc_options=None,
expected_flags=None, unexpected_flags=None,
fresh=False):
pac_request=True, expect_pac=True, fresh=False):
user_name = creds.get_username()
cache_key = (user_name, to_rodc, kdc_options)
cache_key = (user_name, to_rodc, kdc_options, pac_request)
if not fresh:
tgt = self.tkt_cache.get(cache_key)
@ -1363,7 +1363,7 @@ class KDCBaseTest(RawKerberosTest):
kdc_options=kdc_options,
preauth_key=None,
ticket_decryption_key=ticket_decryption_key,
pac_request=True,
pac_request=pac_request,
pac_options=pac_options,
to_rodc=to_rodc)
self.check_pre_authentication(rep)
@ -1405,8 +1405,9 @@ class KDCBaseTest(RawKerberosTest):
kdc_options=kdc_options,
preauth_key=preauth_key,
ticket_decryption_key=ticket_decryption_key,
pac_request=True,
pac_request=pac_request,
pac_options=pac_options,
expect_pac=expect_pac,
to_rodc=to_rodc)
self.check_as_reply(rep)