From a40dcd161c417897c35b46417ea5d103ccd661b9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2010 17:40:05 -0700 Subject: s4-dns: use the generated krb5.conf in samba_dnsupdate this gives one less thing that an admin can get wrong Autobuild-User: Andrew Tridgell Autobuild-Date: Mon Sep 27 02:35:29 UTC 2010 on sn-devel-104 --- source4/scripting/bin/samba_dnsupdate | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/scripting/bin/samba_dnsupdate') diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index d3abcb1052..e2e303ca43 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -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 -- cgit