1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s4-kerberos: use TZ=GMT when we are invoking krb5 code in helpers

Our helper scripts can fail on Fedora with the PDT timezone (Western
USA). This is the same issue we found with Heimdal earlier today, the
24 second difference between GMT and UTC, but this time in MIT
Kerberos as linked into bind9.

By forcing TZ=GMT in these scripts we avoid the problem

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell 2010-09-28 20:43:58 -07:00
parent 3b0d6fda38
commit 06022dad70
2 changed files with 12 additions and 0 deletions

View File

@ -27,6 +27,12 @@ import tempfile
# and don't get swallowed by a timeout
os.putenv('PYTHONUNBUFFERED', '1')
# forcing GMT avoids a problem in some timezones with kerberos. Both MIT
# heimdal can get mutual authentication errors due to the 24 second difference
# between UTC and GMT when using some zone files (eg. the PDT zone from
# the US)
os.putenv("TZ", "GMT")
# Find right directory when running from source tree
sys.path.insert(0, "bin/python")

View File

@ -24,6 +24,12 @@ import os, sys
# and don't get swallowed by a timeout
os.putenv('PYTHONUNBUFFERED', '1')
# forcing GMT avoids a problem in some timezones with kerberos. Both MIT
# heimdal can get mutual authentication errors due to the 24 second difference
# between UTC and GMT when using some zone files (eg. the PDT zone from
# the US)
os.putenv("TZ", "GMT")
# Find right directory when running from source tree
sys.path.insert(0, "bin/python")