samba-tool user getpassword: Use UTF16_MUNGED charcnv to map "UTF16" to UTF8
authorAndrew Bartlett <abartlet@samba.org>
Tue, 12 Dec 2023 03:38:13 +0000 (16:38 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 21 Dec 2023 02:05:38 +0000 (02:05 +0000)
commit23326105cd612d8c1fea1a4d7f1f3c5117d5a674
tree9288197bf952ec4f521a9a53e9a2bc3f65e04d61
parentf89a2065a686a20532813e8b2e80987da61333e1
samba-tool user getpassword: Use UTF16_MUNGED charcnv to map "UTF16" to UTF8

This copes with random invalid UTF-16 as seen with gMSA accounts.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/user/readpasswords/common.py
python/samba/netcmd/user/readpasswords/getpassword.py