aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2018-07-04 16:11:45 +0000
committerGreg Hudson <ghudson@mit.edu>2018-10-29 02:40:26 -0400
commit387d5d333e82b3b0858c48d5f7c541ef122e36b6 (patch)
tree96bb143bf112a3f0b24fb5c5e0fde9c27ef2a939
parentc30d5d9daadf6dbf9b987c02463669a2df991868 (diff)
downloadkrb5-387d5d333e82b3b0858c48d5f7c541ef122e36b6.zip
krb5-387d5d333e82b3b0858c48d5f7c541ef122e36b6.tar.gz
krb5-387d5d333e82b3b0858c48d5f7c541ef122e36b6.tar.bz2
Disable canonicalization in ccselect tests
DNS canonicalization can interfere with the fallback tests by changing "localhost" to have multiple components, or (less likely) changing the parent domain of foo.krbtest.com or foo.krbtest2.com. (cherry picked from commit b5457d8fb719a583b89e1ace186301a144e2c4c9)
-rwxr-xr-xsrc/tests/gssapi/t_ccselect.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tests/gssapi/t_ccselect.py b/src/tests/gssapi/t_ccselect.py
index 6be6b4e..65d1297 100755
--- a/src/tests/gssapi/t_ccselect.py
+++ b/src/tests/gssapi/t_ccselect.py
@@ -24,10 +24,13 @@
from k5test import *
-# Create two independent realms (no cross-realm TGTs).
-r1 = K5Realm(create_user=False)
-r2 = K5Realm(create_user=False, realm='KRBTEST2.COM', portbase=62000,
- testdir=os.path.join(r1.testdir, 'r2'))
+# Create two independent realms (no cross-realm TGTs). For the
+# fallback realm tests we need to control the precise server hostname,
+# so turn off DNS canonicalization.
+conf = {'libdefaults': {'dns_canonicalize_hostname': 'false'}}
+r1 = K5Realm(create_user=False, krb5_conf=conf)
+r2 = K5Realm(create_user=False, krb5_conf=conf, realm='KRBTEST2.COM',
+ portbase=62000, testdir=os.path.join(r1.testdir, 'r2'))
host1 = 'p:' + r1.host_princ
host2 = 'p:' + r2.host_princ