From 249fbd8a334b4d19f9148e07449fec3f26b8267d Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 21 Jun 2011 13:39:28 +0400 Subject: s4-samba_dnsupdate: set environment via the env parameter I faced a situation where the os.environ("KRB5CCNAME") = ... didn't seems to be effective --- source4/scripting/bin/samba_dnsupdate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting') 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) -- cgit