Skip to content

Commit

Permalink
Disable canonicalization in ccselect tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
greghudson committed Jul 5, 2018
1 parent 7aff251 commit b5457d8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/tests/gssapi/t_ccselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5457d8

Please sign in to comment.