]> git.ipfire.org Git - thirdparty/postgresql.git/commit
For Kerberos testing, disable reverse DNS lookup
authorStephen Frost <sfrost@snowman.net>
Fri, 7 Apr 2023 23:36:06 +0000 (19:36 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 7 Apr 2023 23:36:06 +0000 (19:36 -0400)
commit1beb70d810734812edbdf9ab6072425afa6eac40
treec00bdb11c1731f2186c2699d5dd048a3327f6f7e
parent027d29edf454c9f91dc444c87efeeae5d2ce5893
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/QD2zDkDYQA1GQt@tamriel.snowman.net
src/test/kerberos/t/001_auth.pl