samba-tool: add 'user syncpasswords' 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)
commitc68cb6a1d9d366ac3e564245ecca34348a4f1aa2
treed586e9feb069763e556483b7d29d998f8658ba9a
parentc8fb61cadca367b53e8d7ee64a3d19ab5ebf75e4
samba-tool: add 'user syncpasswords' command

This provides an easy way to keep passwords in sync with
another account database, e.g. an OpenLDAP server.

It provides a functionality like the "passwd program"
for the "unix password sync" feature of a standalone, member
and classic (NT4) server, but for an active directory domain
controller.

The provided script is called for each account/password related
change.

Like the 'user getpassword' command it allows virtual attributes like:
virtualClearTextUTF16, virtualClearTextUTF8,
virtualCryptSHA256, virtualCryptSHA512, virtualSSHA

Note that this command should just run on a single domain controller
(typically the PDC-emulator).

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