samba-tool: Allow ;format=UnixTime etc to operate on virtual attributes
commit71f7c4a3c59d170f3cf48c5230d3edf4d51d500c
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Feb 2024 04:27:31 +0000 (28 17:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Feb 2024 01:31:31 +0000 (29 01:31 +0000)
tree287830fad0fa605f5fff82221ba3a08201cfa164
parentdfe71c4235ad9943ba55d5d192b168554be749b3
samba-tool: Allow ;format=UnixTime etc to operate on virtual attributes

To convert a virtual attribute we must understand that it has
been put into "obj" under the name including the ;format= part
and so we must look it back up with that name when looking to
covert it from (say) NTTIME to a unix time.

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