samba-tool user getpassword: Prepare to support a ;previous=1 option, change behaviou...
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Dec 2023 07:55:10 +0000 (20:55 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 21 Dec 2023 02:05:38 +0000 (02:05 +0000)
commit2c54a754842e0deb6e6a4944fde6dec37d7742a2
tree5b00c17c8c3e77c730dea126ba98488bfc5fa8b6
parent175a13ca134a2c990ae20df83f80ed4194055c96
samba-tool user getpassword: Prepare to support a ;previous=1 option, change behaviour for ;rounds=

This will return the previous password, but the pattern is to include
the option in the returned attribute name, so we need to use
vatter["raw_attr"], not 'a'.

This changes the behaviour for the ;rounds= option used when we hold
the plaintext password (possibly under GPG encryption).

This is now consistant with other parameters in the LDAP attribute,
and is now included in the returned attribute name.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
WHATSNEW.txt
python/samba/netcmd/user/readpasswords/common.py
selftest/knownfail.d/user_virtualCryptSHA [deleted file]