s4-dns: use the generated krb5.conf in samba_dnsupdate
authorAndrew Tridgell <tridge@samba.org>
Mon, 27 Sep 2010 00:40:05 +0000 (17:40 -0700)
committerAndrew Tridgell <tridge@samba.org>
Mon, 27 Sep 2010 02:35:29 +0000 (02:35 +0000)
this gives one less thing that an admin can get wrong

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Sep 27 02:35:29 UTC 2010 on sn-devel-104

source4/scripting/bin/samba_dnsupdate

index d3abcb105210abda3a92b8f923821eb5c3f90914..e2e303ca4358b5c60944ed1c29ebcd0ba2ad4b64 100755 (executable)
@@ -320,6 +320,11 @@ def call_rodc_update(d):
 # get the list of DNS entries we should have
 dns_update_list = lp.private_path('dns_update_list')
 
+# use our private krb5.conf to avoid problems with the wrong domain
+# bind9 nsupdate wants the default domain set
+krb5conf = lp.private_path('krb5.conf')
+os.putenv('KRB5_CONFIG', krb5conf)
+
 file = open(dns_update_list, "r")
 
 # get the substitution dictionary