Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ce5e234

Browse files
committed
For Kerberos testing, disable DNS lookups
Similar to 8dff2f2, this disables DNS lookups by the Kerberos library to look up the KDC and the realm while the Kerberos tests are running. In some environments, these lookups can take a long time and end up timing out and causing tests to fail. Further, since this isn't really our domain, we shouldn't be sending out these DNS requests during our tests.
1 parent 7d8219a commit ce5e234

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/kerberos/t/001_auth.pl

+7
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
# that information in DNS, and also because we're using a
108108
# non-standard KDC port.
109109
#
110+
# Also explicitly disable DNS lookups since this isn't really
111+
# our domain and we shouldn't be causing random DNS requests
112+
# to be sent out (not to mention that broken DNS environments
113+
# can cause the tests to take an extra long time and timeout).
114+
#
110115
# Reverse DNS is explicitly disabled to avoid any issue with a
111116
# captive portal or other cases where the reverse DNS succeeds
112117
# and the Kerberos library uses that as the canonical name of
@@ -118,6 +123,8 @@
118123
kdc = FILE:$kdc_log
119124
120125
[libdefaults]
126+
dns_lookup_realm = false
127+
dns_lookup_kdc = false
121128
default_realm = $realm
122129
rdns = false
123130

0 commit comments

Comments
 (0)