samba_dnsupdate: Do not rewrite krb5.conf in selftest
authorAndreas Schneider <asn@samba.org>
Thu, 30 Jul 2015 15:38:34 +0000 (17:38 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Sat, 29 Apr 2017 21:31:08 +0000 (23:31 +0200)
commit0e84e8325219a2408ab0c58af56f228b02ae31d4
tree9992700ef0affd050dbcf0a357974b51b72277de
parent9fee64d0e658ad3690c539fa68de4e29081b6840
samba_dnsupdate: Do not rewrite krb5.conf in selftest

The samba_dnsupdate script is responsible to provision the DNS entries.
The private krb5.conf uses dns lookups to find the KDC to acquire a
Kerberos ticket.  Obviously this will fail because currently we are are
in the process of adding the DNS entries for the KDC.

If we are inside of selftest we need to use the krb5.conf created by
selftest itself.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/scripting/bin/samba_dnsupdate