diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-07 18:28:29 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-12 11:18:07 +0100 |
commit | 16e0b00c9f6444f058304f669b3a4b18ed751a52 (patch) | |
tree | ab004c95b9536f1be14345498b81b5a0aeecbc6d /src/providers | |
parent | 375d570831143fd26df9f8259bb024832636f899 (diff) | |
download | sssd-16e0b00c9f6444f058304f669b3a4b18ed751a52.tar.gz sssd-16e0b00c9f6444f058304f669b3a4b18ed751a52.tar.xz sssd-16e0b00c9f6444f058304f669b3a4b18ed751a52.zip |
Do not always return PAM_SYSTEM_ERR when offline krb5 authentication fails
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/krb5/krb5_auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c index f2e00fac1..a4bd631cb 100644 --- a/src/providers/krb5/krb5_auth.c +++ b/src/providers/krb5/krb5_auth.c @@ -34,6 +34,7 @@ #include "util/util.h" #include "util/find_uid.h" +#include "util/auth_utils.h" #include "db/sysdb.h" #include "util/child_common.h" #include "providers/krb5/krb5_auth.h" @@ -1127,7 +1128,7 @@ static void krb5_pam_handler_cache_auth_step(struct tevent_req *req) NULL); if (ret != EOK) { DEBUG(1, ("Offline authentication failed\n")); - state->pam_status = PAM_SYSTEM_ERR; + state->pam_status = cached_login_pam_status(ret); state->dp_err = DP_ERR_OK; } else { ret = add_user_to_delayed_online_authentication(krb5_ctx, pd, |