aboutsummaryrefslogtreecommitdiff
path: root/src/tests/Makefile.in
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2023-04-24 18:22:40 -0400
committerGreg Hudson <ghudson@mit.edu>2023-07-16 18:16:09 -0400
commitfabbf11f457a84904a5fa251584fd660a52fa583 (patch)
treec48c3b22ae3ff61cd26332a644cfdba61509f1bf /src/tests/Makefile.in
parentef08b09c9459551aabbe7924fb176f1583053cdd (diff)
downloadkrb5-fabbf11f457a84904a5fa251584fd660a52fa583.zip
krb5-fabbf11f457a84904a5fa251584fd660a52fa583.tar.gz
krb5-fabbf11f457a84904a5fa251584fd660a52fa583.tar.bz2
Defer primary KDC lookups
Add an internal variant of krb5_sendto_kdc() which records the answering KDC in a list. Callers can check the list for replica KDC use after the success or failure of the KDC exchange is determined, avoiding DNS queries for the primary KDCs in many common cases and using fewer DNS queries in other cases. Perform the fallback in k5_get_init_creds() rather than krb5_get_init_creds_password(). For now we must additionally perform the fallback in krb5_get_init_creds_keytab() as it does not use k5_get_init_creds(). Preserve the current signature of krb5_sendto_kdc() (it is used within the tree outside of libkrb5, and might be used by other software despite being non-public), but remove the behavior of setting *use_primary. ticket: 7721
Diffstat (limited to 'src/tests/Makefile.in')
-rw-r--r--src/tests/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/Makefile.in b/src/tests/Makefile.in
index e7cf64e..1ecc9b7 100644
--- a/src/tests/Makefile.in
+++ b/src/tests/Makefile.in
@@ -191,6 +191,7 @@ check-pytests: responder s2p s4u2proxy unlockiter s4u2self
$(RUNPYTEST) $(srcdir)/t_u2u.py $(PYTESTFLAGS)
$(RUNPYTEST) $(srcdir)/t_kdcoptions.py $(PYTESTFLAGS)
$(RUNPYTEST) $(srcdir)/t_replay.py $(PYTESTFLAGS)
+ $(RUNPYTEST) $(srcdir)/t_sendto_kdc.py $(PYTESTFLAGS)
clean:
$(RM) adata conccache etinfo forward gcred hist hooks hrealm