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

tests/krb5: Check 'caddr' element

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
This commit is contained in:
Joseph Sutton 2021-09-01 19:45:57 +12:00 committed by Andrew Bartlett
parent 9cba5f9a1b
commit d3106a8d35

View File

@ -2166,7 +2166,8 @@ class RawKerberosTest(TestCaseInTempDir):
self.assertElementPresent(ticket_private, 'renew-till')
else:
self.assertElementMissing(ticket_private, 'renew-till')
# TODO self.assertElementMissing(ticket_private, 'caddr')
if self.strict_checking:
self.assertElementEqual(ticket_private, 'caddr', [])
self.assertElementPresent(ticket_private, 'authorization-data')
encpart_session_key = None
@ -2199,7 +2200,8 @@ class RawKerberosTest(TestCaseInTempDir):
expected_srealm)
self.assertElementEqualPrincipal(encpart_private, 'sname',
expected_sname)
# TODO self.assertElementMissing(encpart_private, 'caddr')
if self.strict_checking:
self.assertElementEqual(encpart_private, 'caddr', [])
sent_claims = self.sent_claims(kdc_exchange_dict)