]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Allow tgs_req() to specify different kdc-options
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 15 Sep 2021 23:18:12 +0000 (11:18 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 21 Sep 2021 23:05:41 +0000 (23:05 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/kdc_base_test.py

index 57ef1bceb49d6b1b5466dcead576275e27348a8f..c448f127c0c57130b667bae86cbfe4a3655789b9 100644 (file)
@@ -1067,13 +1067,11 @@ class KDCBaseTest(RawKerberosTest):
             self.assertEqual(rep['error-code'], expected, "rep = {%s}" % rep)
 
     def tgs_req(self, cname, sname, realm, ticket, key, etypes,
-                expected_error_mode=0, padata=None):
+                expected_error_mode=0, padata=None, kdc_options=0):
         '''Send a TGS-REQ, returns the response and the decrypted and
            decoded enc-part
         '''
 
-        kdc_options = "0"
-
         subkey = self.RandomKey(key.etype)
 
         (ctime, cusec) = self.get_KerberosTimeWithUsec()