summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-06-17 10:31:02 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-17 19:56:32 +0200
commitee02e59e4d966f44c7a48ad04474156fc65d7006 (patch)
tree1b90d99d0ac120315ca0a028913e8a93081ac27c /src/providers/ipa
parente23f790d0e38a8dce04560e34c189208d146ddd8 (diff)
downloadsssd-ee02e59e4d966f44c7a48ad04474156fc65d7006.tar.gz
sssd-ee02e59e4d966f44c7a48ad04474156fc65d7006.tar.bz2
sssd-ee02e59e4d966f44c7a48ad04474156fc65d7006.zip
handle ERR_ACCOUNT_EXPIRED properly
https://fedorahosted.org/sssd/ticket/1953
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index 3760c6f7..58539f4c 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -129,6 +129,10 @@ static void ipa_hbac_check(struct tevent_req *req)
pd->pam_status = PAM_PERM_DENIED;
be_req_terminate(be_req, DP_ERR_OK, pd->pam_status, NULL);
return;
+ case ERR_ACCOUNT_EXPIRED:
+ pd->pam_status = PAM_ACCT_EXPIRED;
+ be_req_terminate(be_req, DP_ERR_OK, pd->pam_status, NULL);
+ return;
default:
/* We got an unexpected error. Return it as-is */
pd->pam_status = PAM_SYSTEM_ERR;