summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5/krb5_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/krb5/krb5_auth.c')
-rw-r--r--src/providers/krb5/krb5_auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index 83dcfae82..82d8ecc2b 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"
@@ -1132,7 +1133,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,