netcmd: Fix kerberos option for domain backups
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 9 Aug 2018 03:34:51 +0000 (15:34 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2018 05:08:25 +0000 (07:08 +0200)
commit8fb706c34682bf6dc6033963518c7eccffc3944f
treef2fddc38716a6793a167c958927b9f0b932ac844
parent14077b6682d7dc1b16e1ccb42ef61e9f4c0a1715
netcmd: Fix kerberos option for domain backups

The previous fix still didn't work if you specified --kerberos=yes (in
which case the creds still doesn't have a password).

credopts.get_credentials(lp) should be enough to ensure a user/password
is set (it's all that the other commands seem to do).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13566

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/domain_backup.py