]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Update SimpleKerberosTests now that Samba supports FAST
authorAndrew Bartlett <abartlet@samba.org>
Fri, 18 Jun 2021 07:41:10 +0000 (19:41 +1200)
committerJoseph Sutton <jsutton@samba.org>
Wed, 19 Jan 2022 20:50:35 +0000 (20:50 +0000)
Heimdal matches Windows in this respect

NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN!

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
python/samba/tests/krb5/compatability_tests.py

index 65e9e3788d52927d8e20a89d62316b977e7d9bd5..44c2afd41dce0c597158f892a94374023cbb8d84 100755 (executable)
@@ -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()