]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2022-32744 tests/krb5: Correctly handle specifying account kvno
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 26 May 2022 04:34:01 +0000 (16:34 +1200)
committerJule Anger <janger@samba.org>
Wed, 27 Jul 2022 10:52:36 +0000 (10:52 +0000)
The environment variable is a string, but we expect an integer.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15074

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/tests/krb5/raw_testcase.py

index 7f9d9d1764011b6ce5ef4aea14c0a23b7790fa40..d0c28fb2002c2e34f736cd33d93775380877eaab 100644 (file)
@@ -759,7 +759,7 @@ class RawKerberosTest(TestCaseInTempDir):
                                 fallback_default=False,
                                 allow_missing=kvno_allow_missing)
         if kvno is not None:
-            c.set_kvno(kvno)
+            c.set_kvno(int(kvno))
         aes256_key = self.env_get_var('AES256_KEY_HEX', prefix,
                                       fallback_default=False,
                                       allow_missing=aes256_allow_missing)