mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +03:00
tests/krb5: Make e-data checking less strict
Without this additional 'self.strict_checking' check, the tests in the following patches do not get far enough to trigger a crash with the MIT KDC, instead failing when obtaining a TGT for the user or machine. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14770 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
d9edad89f3
commit
79dda329f2
@@ -2504,8 +2504,9 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
if self.strict_checking:
|
||||
self.assertIsNone(enc_challenge)
|
||||
if not sent_enc_challenge:
|
||||
self.assertIsNotNone(pk_as_req)
|
||||
self.assertIsNotNone(pk_as_rep19)
|
||||
if self.strict_checking:
|
||||
self.assertIsNotNone(pk_as_req)
|
||||
self.assertIsNotNone(pk_as_rep19)
|
||||
else:
|
||||
self.assertIsNone(pk_as_req)
|
||||
self.assertIsNone(pk_as_rep19)
|
||||
|
||||
Reference in New Issue
Block a user