samba-tool domain exportkeytab: Refuse to overwrite an existing file in full-db export
authorAndrew Bartlett <abartlet@samba.org>
Thu, 7 Mar 2024 01:53:53 +0000 (14:53 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Mar 2024 22:06:40 +0000 (22:06 +0000)
commit9d7a97dc9820e9f69a25a7321d84eb18cd3c6c08
treedbb79deedc73e6ecd226ed57d833e47c95c90f80
parenta0867595fbdb0e59b3c649f80f36e99ca74af41e
samba-tool domain exportkeytab: Refuse to overwrite an existing file in full-db export

Since 87f67d336919172845f53067c67d1eab8e7ef18a samba-tool domain exportkeytab has
silently unlinked the given target file.  Instead, the administrator now needs
to specify a file that does not exist.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
selftest/knownfail.d/export-keytab
source4/libnet/libnet_export_keytab.c
testprogs/blackbox/test_kinit_export_keytab.sh