Skip to content

Commit afa50be

Browse files
committed
krb5_child: clarify EAGAIN returned by krb5_get_init_creds_password()
1 parent 9cbd43c commit afa50be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/providers/krb5/krb5_child.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,6 +2323,11 @@ static krb5_error_code get_and_save_tgt(struct krb5_req *kr,
23232323
KRB5_CHILD_DEBUG(SSSDBG_CRIT_FAILURE, kerr);
23242324

23252325
if (kerr == EAGAIN) {
2326+
/* The most probable reason for krb5_get_init_creds_password()
2327+
* to return EAGAIN is a temporary failure getaddrinfo() i.e.
2328+
* DNS currently does not work reliable. In this case it makes
2329+
* sense to return KRB5_KDC_UNREACH to tell the backend to try
2330+
* other KDCs or switch into offline mode. */
23262331
kerr = KRB5_KDC_UNREACH;
23272332
}
23282333

0 commit comments

Comments
 (0)