summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2010-05-16 02:49:45 +0000
committerKen Raeburn <raeburn@mit.edu>2010-05-16 02:49:45 +0000
commit0d9219dc93e028e067fc7bf633be8e38ad9900aa (patch)
tree75c30194adc5fd0be67d43740e35e2429ea69a95 /src
parentc0cd63413841b3b85e0f70c6949322cc6299afb5 (diff)
downloadkrb5-0d9219dc93e028e067fc7bf633be8e38ad9900aa.tar.gz
krb5-0d9219dc93e028e067fc7bf633be8e38ad9900aa.tar.xz
krb5-0d9219dc93e028e067fc7bf633be8e38ad9900aa.zip
Force hostname to lower-case for use in principal names
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24039 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/k5test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/k5test.py b/src/util/k5test.py
index 880c6bd4f..e506afa7c 100644
--- a/src/util/k5test.py
+++ b/src/util/k5test.py
@@ -1030,7 +1030,8 @@ buildtop = _find_buildtop()
srctop = _find_srctop()
plugins = _find_plugins()
_runenv = _import_runenv()
-hostname = socket.getfqdn()
+# This gets used for principal names, so force it to lower case.
+hostname = socket.getfqdn().lower()
null_input = open(os.devnull, 'r')
krb5kdc = os.path.join(buildtop, 'kdc', 'krb5kdc')