summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-11-27 14:31:54 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-12-07 16:04:45 +0100
commit54189e0a2f24a2951d95a2ec5da3125a52e2f5ed (patch)
tree07eb5c2687e9454e3d51dd09b9349d7d8ff6533d /src/providers
parent56554406dea99678d71036f3958d4f2e4aa356c2 (diff)
downloadsssd-54189e0a2f24a2951d95a2ec5da3125a52e2f5ed.tar.gz
sssd-54189e0a2f24a2951d95a2ec5da3125a52e2f5ed.tar.xz
sssd-54189e0a2f24a2951d95a2ec5da3125a52e2f5ed.zip
KRB5: Handle preauth request timeout more gracefully
The error itself doesn't matter that much, because pam_sss.so handles all preauth errors gracefully already, but the issue triggered a loud and confusing debug message in the logs. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/krb5/krb5_auth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index 7b7a16a61..7657b4ded 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -826,6 +826,11 @@ static void krb5_auth_done(struct tevent_req *subreq)
search_srv = kr->srv;
break;
}
+ case SSS_PAM_PREAUTH:
+ state->pam_status = PAM_CRED_UNAVAIL;
+ state->dp_err = DP_ERR_OK;
+ ret = EOK;
+ goto done;
default:
DEBUG(SSSDBG_CRIT_FAILURE, "Unexpected PAM task\n");
ret = EINVAL;