summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate5
1 files changed, 5 insertions, 0 deletions
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