mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
python/samba/krb5: Allow client address (caddr) to be missing or empty
Currently (as of 2024-02) windows 21H2 returns this as []. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
This commit is contained in:
parent
3d1ec5dc67
commit
46263c5c20
@ -3954,7 +3954,9 @@ class RawKerberosTest(TestCase):
|
||||
self.assertElementPresent(ticket_private, 'renew-till')
|
||||
else:
|
||||
self.assertElementMissing(ticket_private, 'renew-till')
|
||||
if self.strict_checking:
|
||||
if self.strict_checking and \
|
||||
self.getElementValue(ticket_private,
|
||||
'caddr') != []:
|
||||
self.assertElementMissing(ticket_private, 'caddr')
|
||||
if expect_pac is not None:
|
||||
if expect_pac:
|
||||
@ -4011,8 +4013,10 @@ class RawKerberosTest(TestCase):
|
||||
expected_srealm)
|
||||
self.assertElementEqualPrincipal(encpart_private, 'sname',
|
||||
expected_sname)
|
||||
if self.strict_checking:
|
||||
self.assertElementMissing(encpart_private, 'caddr')
|
||||
if self.strict_checking and \
|
||||
self.getElementValue(ticket_private,
|
||||
'caddr') != []:
|
||||
self.assertElementMissing(ticket_private, 'caddr')
|
||||
|
||||
sent_pac_options = self.get_sent_pac_options(kdc_exchange_dict)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user