From e5b9cc8f6c1c34a40787c1c395067e715140d6fe Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 18 Jun 2021 19:41:10 +1200 Subject: [PATCH] selftest: Update SimpleKerberosTests now that Samba supports FAST Heimdal matches Windows in this respect NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN! Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- python/samba/tests/krb5/compatability_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/samba/tests/krb5/compatability_tests.py b/python/samba/tests/krb5/compatability_tests.py index 65e9e3788d5..44c2afd41dc 100755 --- a/python/samba/tests/krb5/compatability_tests.py +++ b/python/samba/tests/krb5/compatability_tests.py @@ -89,16 +89,16 @@ class SimpleKerberosTests(KDCBaseTest): # RFC 6806 11. Negotiation of FAST and Detecting Modified Requests self.assertTrue(ENC_PA_REP_FLAG & flags) - def test_heimdal_EncASRepPart_FAST_support(self): + def test_heimdal_and_windows_EncASRepPart_FAST_support(self): creds = self.get_user_creds() (enc, _) = self.as_req(creds) self.assertEqual(HIEMDAL_ENC_AS_REP_PART_TYPE_TAG, enc[0]) as_rep = self.der_decode(enc, asn1Spec=krb5_asn1.EncASRepPart()) flags = as_rep['flags'] flags = int(as_rep['flags'], base=2) - # Heimdal does not set enc-pa-rep, flag bit 15 + # Heimdal and Windows does set enc-pa-rep, flag bit 15 # RFC 6806 11. Negotiation of FAST and Detecting Modified Requests - self.assertFalse(ENC_PA_REP_FLAG & flags) + self.assertTrue(ENC_PA_REP_FLAG & flags) def test_mit_arcfour_salt(self): creds = self.get_user_creds() -- 2.47.3