tests/krb5: Allow as_req() to specify different kdc-options
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 15 Sep 2021 23:52:46 +0000 (11:52 +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 5ef08eb32fe40fa0911335d4ff297a63edb51ec2..ae62c9d5fc691bd945f71d79f5cdf62deabf7bd2 100644 (file)
@@ -913,12 +913,11 @@ class KDCBaseTest(RawKerberosTest):
                                  fallback_creds_fn=download_krbtgt_creds)
         return c
 
-    def as_req(self, cname, sname, realm, etypes, padata=None):
+    def as_req(self, cname, sname, realm, etypes, padata=None, kdc_options=0):
         '''Send a Kerberos AS_REQ, returns the undecoded response
         '''
 
         till = self.get_KerberosTime(offset=36000)
-        kdc_options = 0
 
         req = self.AS_REQ_create(padata=padata,
                                  kdc_options=str(kdc_options),