samba-tool: improve computer management commands
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 13 Mar 2018 03:47:58 +0000 (16:47 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 6 Apr 2018 04:29:10 +0000 (06:29 +0200)
commite41b9b04e23f0e8831ff922d247b737bf8116151
treee9cba4c6c816e66fb365fcc41ec156b90fe22721
parent6e4a49e992a9b3b3dc5e96896c934abcb6ee6b4e
samba-tool: improve computer management commands

This pathch is based on Björn Baumbach's work:
1. Add `--ip-address` option for create subcommand, to allow user set DNS
A or AAAA records while creating the computer.
2. Delete above DNS records while deleting the computer.
3. Add `--service-principal-name` option for create command, to allow user
set `servicePrincipalName` while creating the computer.
4. Tests.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/computer.py
python/samba/samdb.py
python/samba/tests/samba_tool/computer.py