samba: read backup date field on init and fail if present
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Tue, 1 May 2018 03:48:38 +0000 (15:48 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Jun 2018 01:34:26 +0000 (03:34 +0200)
commitf0aad4a18736cbcbb3c87dd03cf24ae190fe8b4f
tree5756c6c1fb6eaeacc4fb7f2c9c2b788d8d1cdcc5
parent8e58954f2f4a41baaf4007dc09b7cf9349e98077
samba: read backup date field on init and fail if present

This prevents a backup tar file, created with the new official
backup tools, from being extracted and replicated.

This is done here to ensure that samba-tool and ldbsearch can
still operate on the backup (eg for forensics) but starting
Samba as an AD DC will fail.

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/start_backup [deleted file]
source4/smbd/server.c