diff options
author | Matthieu Patou <mat@matws.net> | 2011-06-21 13:39:28 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-06-22 20:13:08 +0200 |
commit | 249fbd8a334b4d19f9148e07449fec3f26b8267d (patch) | |
tree | a9ba674e2b0c4b2eaf6790d51382800ded036f4e /source4/scripting | |
parent | c2dfaa2580918cf31069c1063ff07a819ca0554a (diff) | |
download | samba-249fbd8a334b4d19f9148e07449fec3f26b8267d.tar.gz samba-249fbd8a334b4d19f9148e07449fec3f26b8267d.tar.bz2 samba-249fbd8a334b4d19f9148e07449fec3f26b8267d.zip |
s4-samba_dnsupdate: set environment via the env parameter
I faced a situation where the os.environ("KRB5CCNAME") = ... didn't
seems to be effective
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/samba_dnsupdate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index 0a13dd7c9b..78d7dc1712 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -278,7 +278,7 @@ def call_nsupdate(d): try: cmd = nsupdate_cmd[:] cmd.append(tmpfile) - ret = subprocess.call(cmd, shell=False) + ret = subprocess.call(cmd, shell=False, env={"KRB5CCNAME": ccachename}) if ret != 0: if opts.fail_immediately: sys.exit(1) |