samba-tool: add --decrypt-samba-gpg support to 'user getpasswords' and 'user syncpass...
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:27 +0000 (16:03 +0200)
commitf45a0ffe868bdb4304c9a5619938407d5c1c7e83
tree136fa7bc5fa69bd56c4d07f549d474bd002702d5
parent763acdc2e78f570b362914bb1ac1b3ed1fd94964
samba-tool: add --decrypt-samba-gpg support to 'user getpasswords' and 'user syncpasswords'

This get's the cleartext passwords by decrypting
the 'Primary:SambaGPG' value in order to provide the
virtual attributes: virtualClearTextUTF16, virtualClearTextUTF8,
virtualCryptSHA256, virtualCryptSHA512, virtualSSHA

The virtual attribute virtualSambaGPG provides the raw
(encrypted) value of the 'Primary:SambaGPG' value.

See the "password hash gpg key ids" option for the encryption part
of this feature.

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