diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2023-12-21 22:25:25 +1300 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2024-03-14 22:06:39 +0000 |
| commit | b8308f3fe06f2d97b04554d79f321cd62dd01a2c (patch) | |
| tree | 66c1d42376b388c650e7705eca7d3af7a437fed7 /python | |
| parent | 13d346ce0c43f9c9017d6707bd41fe8c57ddfde1 (diff) | |
| download | samba-b8308f3fe06f2d97b04554d79f321cd62dd01a2c.tar.gz samba-b8308f3fe06f2d97b04554d79f321cd62dd01a2c.tar.bz2 samba-b8308f3fe06f2d97b04554d79f321cd62dd01a2c.zip | |
auth/credentials: Make cli_credentials_get_aes256_key into generic key access
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/netcmd/user/readpasswords/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/netcmd/user/readpasswords/common.py b/python/samba/netcmd/user/readpasswords/common.py index 2b888c4f0f7..0aa1f237dc0 100644 --- a/python/samba/netcmd/user/readpasswords/common.py +++ b/python/samba/netcmd/user/readpasswords/common.py @@ -490,7 +490,7 @@ class GetPasswordCommand(Command): current_hash = unicodePwd elif aes256_key is not None and kerberos_salt is not None: tmp.set_kerberos_salt_principal(kerberos_salt) - decrypted = tmp.get_aes256_key() + decrypted = tmp.get_kerberos_key(credentials.ENCTYPE_AES256_CTS_HMAC_SHA1_96) current_hash = aes256_key.value if current_hash is not None and current_hash == decrypted: |
