tests/krb5: Allow tgs_req() to send requests to the RODC
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 15 Sep 2021 23:25:01 +0000 (11:25 +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 c448f127c0c57130b667bae86cbfe4a3655789b9..5ef08eb32fe40fa0911335d4ff297a63edb51ec2 100644 (file)
@@ -1067,7 +1067,8 @@ 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, kdc_options=0):
+                expected_error_mode=0, padata=None, kdc_options=0,
+                to_rodc=False):
         '''Send a TGS-REQ, returns the response and the decrypted and
            decoded enc-part
         '''
@@ -1106,7 +1107,8 @@ class KDCBaseTest(RawKerberosTest):
             generate_padata_fn=generate_padata if padata is not None else None,
             tgt=tgt,
             authenticator_subkey=subkey,
-            kdc_options=str(kdc_options))
+            kdc_options=str(kdc_options),
+            to_rodc=to_rodc)
 
         rep = self._generic_kdc_exchange(kdc_exchange_dict,
                                          cname=None,