summaryrefslogtreecommitdiff
path: root/src/providers/ad
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/ad
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/ad')
-rw-r--r--src/providers/ad/ad_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/ad/ad_access.c b/src/providers/ad/ad_access.c
index ef1775d7..4e4dc883 100644
--- a/src/providers/ad/ad_access.c
+++ b/src/providers/ad/ad_access.c
@@ -86,6 +86,10 @@ ad_access_done(struct tevent_req *req)
pd->pam_status = PAM_PERM_DENIED;
be_req_terminate(breq, DP_ERR_OK, PAM_PERM_DENIED, NULL);
return;
+ case ERR_ACCOUNT_EXPIRED:
+ pd->pam_status = PAM_ACCT_EXPIRED;
+ be_req_terminate(breq, DP_ERR_OK, PAM_ACCT_EXPIRED, NULL);
+ return;
default:
/* Something went wrong */
pd->pam_status = PAM_SYSTEM_ERR;