summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2025-08-13 10:58:36 +1200
committerDouglas Bagnall <dbagnall@samba.org>2025-08-13 02:53:44 +0000
commit7ac54e272676f92a6ba331d1a26623ed82ac2bbc (patch)
tree7babb7a0ed57b63bd4ac8e238fa81de10c9e5884 /python
parent6a1dc25421ba1e927bf758c0ea80e2c08e350113 (diff)
downloadsamba-7ac54e272676f92a6ba331d1a26623ed82ac2bbc.tar.gz
samba-7ac54e272676f92a6ba331d1a26623ed82ac2bbc.tar.bz2
samba-7ac54e272676f92a6ba331d1a26623ed82ac2bbc.zip
python:key_credential_link: old python compatibility
int.to_bytes assumed these defaults in recent versions Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r--python/samba/key_credential_link.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/key_credential_link.py b/python/samba/key_credential_link.py
index 2ef5e00cbff..2ff17da44da 100644
--- a/python/samba/key_credential_link.py
+++ b/python/samba/key_credential_link.py
@@ -187,7 +187,7 @@ def create_key_credential_link(samdb: SamDB,
# always KEY_USAGE_NGC
kcl_key_usage = kcl_entry_bytes(keycredlink.KeyUsage,
- keycredlink.KEY_USAGE_NGC.to_bytes())
+ keycredlink.KEY_USAGE_NGC.to_bytes(1, byteorder='big'))
# nttime for now
kcl_creation = kcl_entry_bytes(keycredlink.KeyCreationTime,