git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e055b
)
python:tests: Store keys as bytes rather than as tuples
author
Jo Sutton
<josutton@catalyst.net.nz>
Wed, 24 Apr 2024 01:36:28 +0000
(13:36 +1200)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/python/samba/tests/dckeytab.py
b/python/samba/tests/dckeytab.py
index a382e8b735693710ffe62279c7055f9d77df7d0c..a4ae38a8c0bc786cb69f45381966c40140f02388 100644
(file)
--- 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)