8000 For Kerberos testing, disable DNS lookups · postgres/postgres@52d83e9 · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit 52d83e9

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 f0bd336 commit 52d83e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@
7979
# that information in DNS, and also because we're using a
8080
# non-standard KDC port.
8181
#
82+
# Also explicitly disable DNS lookups since this isn't really
83+
# our domain and we shouldn't be causing random DNS requests
84+
# to be sent out (not to mention that broken DNS environments
85+
# can cause the tests to take an extra long time and timeout).
86+
#
8287
# Reverse DNS is explicitly disabled to avoid any issue with a
8388
# captive portal or other cases where the reverse DNS succeeds
8489
# and the Kerberos library uses that as the canonical name of
@@ -90,6 +95,8 @@
9095
kdc = FILE:$kdc_log
9196
9297
[libdefaults]
98+
dns_lookup_realm = false
99+
dns_lookup_kdc = false
93100
default_realm = $realm
94101
rdns = false
95102

0 commit comments

Comments
 (0)
0