diff options
Diffstat (limited to 'server/providers/ldap/ldap_auth.c')
-rw-r--r-- | server/providers/ldap/ldap_auth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/providers/ldap/ldap_auth.c b/server/providers/ldap/ldap_auth.c index b1667c4b..487fb074 100644 --- a/server/providers/ldap/ldap_auth.c +++ b/server/providers/ldap/ldap_auth.c @@ -404,6 +404,7 @@ static void sdap_auth4chpass_done(struct tevent_req *req) switch (result) { case SDAP_AUTH_SUCCESS: + case SDAP_AUTH_PW_EXPIRED: DEBUG(7, ("user [%s] successfully authenticated.\n", state->dn)); subreq = sdap_exop_modify_passwd_send(state, state->breq->be_ctx->ev, @@ -541,6 +542,9 @@ static void sdap_pam_auth_done(struct tevent_req *req) case SDAP_UNAVAIL: state->pd->pam_status = PAM_AUTHINFO_UNAVAIL; break; + case SDAP_AUTH_PW_EXPIRED: + state->pd->pam_status = PAM_AUTHTOK_EXPIRED; + break; default: state->pd->pam_status = PAM_SYSTEM_ERR; } |