diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2025-08-13 10:58:36 +1200 |
|---|---|---|
| committer | Douglas Bagnall <dbagnall@samba.org> | 2025-08-13 02:53:44 +0000 |
| commit | 7ac54e272676f92a6ba331d1a26623ed82ac2bbc (patch) | |
| tree | 7babb7a0ed57b63bd4ac8e238fa81de10c9e5884 /python | |
| parent | 6a1dc25421ba1e927bf758c0ea80e2c08e350113 (diff) | |
| download | samba-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.py | 2 |
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, |
