diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-26 17:40:05 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-27 02:35:29 +0000 |
commit | a40dcd161c417897c35b46417ea5d103ccd661b9 (patch) | |
tree | 195c4a283229f05fb2c2846307667a892d78a569 /source4/scripting/bin | |
parent | 93be0d6178f4339f7cc4e004c2abbffef1efdc59 (diff) | |
download | samba-a40dcd161c417897c35b46417ea5d103ccd661b9.tar.gz samba-a40dcd161c417897c35b46417ea5d103ccd661b9.tar.bz2 samba-a40dcd161c417897c35b46417ea5d103ccd661b9.zip |
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 <tridge@samba.org>
Autobuild-Date: Mon Sep 27 02:35:29 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-x | source4/scripting/bin/samba_dnsupdate | 5 |
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 |