mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +03:00
tests/krb5: Check logon name in 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:
committed by
Andrew Bartlett
parent
bd22dcd9cc
commit
e7c39cc44f
@@ -2552,6 +2552,12 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
self.assertEqual(expected_transited_services,
|
||||
transited_services)
|
||||
|
||||
elif pac_buffer.type == krb5pac.PAC_TYPE_LOGON_NAME:
|
||||
expected_cname = kdc_exchange_dict['expected_cname']
|
||||
account_name = expected_cname['name-string'][0]
|
||||
|
||||
self.assertEqual(account_name, pac_buffer.info.account_name)
|
||||
|
||||
def generic_check_kdc_error(self,
|
||||
kdc_exchange_dict,
|
||||
callback_dict,
|
||||
|
||||
Reference in New Issue
Block a user