python:tests: Store keys as bytes rather than as lists of ints master
authorJo Sutton <josutton@catalyst.net.nz>
Wed, 24 Apr 2024 01:34:27 +0000 (13:34 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Apr 2024 06:20:58 +0000 (06:20 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Apr 24 06:20:58 UTC 2024 on atb-devel-224

python/samba/tests/dckeytab.py

index ca0dbcf7f2a27ef31ad7e799500acd49958b9c84..31139c0360f657de65cbb30761f1b802692d28cc 100644 (file)
@@ -436,7 +436,7 @@ class DCKeytabTests(TestCaseInTempDir):
         remote_keys = {}
 
         while True:
-            remote_keys[remote_keytab.entry.enctype] = remote_keytab.entry.key.data
+            remote_keys[remote_keytab.entry.enctype] = bytes(remote_keytab.entry.key.data)
             keytab_bytes = remote_keytab.further_entry
             if not keytab_bytes:
                 break
@@ -446,7 +446,7 @@ class DCKeytabTests(TestCaseInTempDir):
         local_keys = {}
 
         while True:
-            local_keys[local_keytab.entry.enctype] = local_keytab.entry.key.data
+            local_keys[local_keytab.entry.enctype] = bytes(local_keytab.entry.key.data)
             keytab_bytes = local_keytab.further_entry
             if not keytab_bytes:
                 break