For Kerberos testing, disable reverse DNS lookup
authorStephen Frost <[email protected]>
Thu, 9 Mar 2023 15:32:49 +0000 (10:32 -0500)
committerStephen Frost <[email protected]>
Thu, 9 Mar 2023 15:32:49 +0000 (10:32 -0500)
commit8dff2f224f4f49ddd4f45f590e7f46b160a4951b
tree472c36c44fe783ec4839a8a53fa9f7461e9909ee
parent590a075789b541d5c1a190031fdcf061355bcfbc
For Kerberos testing, disable reverse DNS lookup

In our Kerberos test suite, there isn't much need to worry about the
normal canonicalization that Kerberos provides by looking up the reverse
DNS for the IP address connected to, and in some cases it can actively
cause problems (eg: a captive portal wifi where the normally not
resolvable localhost address used ends up being resolved anyway, and
not to the domain we are using for testing, causing the entire
regression test to fail with errors about not being able to get a TGT
for the remote realm for cross-realm trust).

Therefore, disable it by adding rdns = false into the krb5.conf that's
generated for the test.

Reviewed-By: Heikki Linnakangas
Discussion: https://postgr.es/m/Y/[email protected]
src/test/kerberos/t/001_auth.pl