python:tests: Store keys as bytes rather than as tuples
authorJo Sutton <josutton@catalyst.net.nz>
Wed, 24 Apr 2024 01:36:28 +0000 (13:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Apr 2024 05:16:29 +0000 (05:16 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/dckeytab.py

index a382e8b735693710ffe62279c7055f9d77df7d0c..a4ae38a8c0bc786cb69f45381966c40140f02388 100644 (file)
@@ -55,7 +55,7 @@ class DCKeytabTests(TestCaseInTempDir):
             principal = '/'.join(entry.principal.components) + f"@{entry.principal.realm}"
             enctype = entry.enctype
             kvno = entry.key_version
-            key = tuple(entry.key.data)
+            key = bytes(entry.key.data)
             return (principal, enctype, kvno, key)
 
         keytab = ndr_unpack(krb5ccache.KEYTAB, keytab_bytes)