samba-tool: add 'user getpassword' command
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jan 2016 20:52:26 +0000 (21:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2016 14:03:26 +0000 (16:03 +0200)
commitdeb2a0258e74b0fd6a570d7abbe3485a7d346b5f
treeeb8cbf41d71be133e73e28c2fbee9534d0251930
parent67404bac52c1b4d303c4b131efb168c805cdfd78
samba-tool: add 'user getpassword' command

This provides an easy way to get the passwords of a user
including the cleartext passwords (if stored) and derived
hashes. This is done by providing virtual attributes like:
virtualClearTextUTF16, virtualClearTextUTF8,
virtualCryptSHA256, virtualCryptSHA512, virtualSSHA

This is much easier than using ldbsearch and manually parsing
the supplementalCredentials attribute.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
python/samba/netcmd/user.py