From: Jo Sutton Date: Wed, 24 Apr 2024 01:36:28 +0000 (+1200) Subject: python:tests: Store keys as bytes rather than as tuples X-Git-Tag: tdb-1.4.11~920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb97e3f13dfa8e8f7512639389aaccf93d53959a;p=thirdparty%2Fsamba.git python:tests: Store keys as bytes rather than as tuples Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/dckeytab.py b/python/samba/tests/dckeytab.py index a382e8b7356..a4ae38a8c0b 100644 --- a/python/samba/tests/dckeytab.py +++ b/python/samba/tests/dckeytab.py @@ -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)