samba-tool: add new "user unlock" command
authorBjörn Baumbach <bb@sernet.de>
Thu, 22 Oct 2020 15:29:56 +0000 (17:29 +0200)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 3 Nov 2020 22:55:37 +0000 (22:55 +0000)
commit0bc93500a8bfb268085b02379375741903961f4e
treee11a4dcb32c45cc55d4dd186769a33a515c416e3
parent27480333fdc0ee6c35c5b3d3bbd5bb026fc7dba0
samba-tool: add new "user unlock" command

Can be used to unlock a user when the badPwdCount has been reached.

Introduces SamDB error classes, as suggested by
Douglas Bagnall <douglas.bagnall@catalyst.net.nz> - thanks!
This helps to handle expected failures.
Tracebacks of really unexpected failures will not be hidden.

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
docs-xml/manpages/samba-tool.8.xml
python/samba/netcmd/user.py
python/samba/samdb.py