diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-04 14:54:18 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-04 14:54:18 -0400 |
commit | 3cbdc61cc4eddc402cd86b5e117265c7cdbf7ce7 (patch) | |
tree | f20cd4285046888b5ec36cfd9bd4a17d66a9b0de | |
parent | 62667936cfb054352a6c36c1490d823abbf5ea02 (diff) | |
download | sssd-3cbdc61cc4eddc402cd86b5e117265c7cdbf7ce7.tar.gz sssd-3cbdc61cc4eddc402cd86b5e117265c7cdbf7ce7.tar.xz sssd-3cbdc61cc4eddc402cd86b5e117265c7cdbf7ce7.zip |
Revert "Allow LDAP to decide when an expiration warning is warranted"
This reverts commit b3d6f8383b94ffe49e02bb156e1ab442b46b042c.
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 7fcf98543..3c9d7600a 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -409,10 +409,9 @@ static errno_t filter_responses(struct confdb_ctx *cdb, } memcpy(&expire_warn, resp->data + sizeof(uint32_t), sizeof(uint32_t)); - /* TODO: Add an option to limit the display of the - * expiration warning to a specified number of - * days (e.g. 14) - */ + if(expire_warn > pam_expiration_warning * (60 * 60 * 24)) { + resp->do_not_send_to_client = true; + } break; default: DEBUG(7, ("User info type [%d] not filtered.\n")); |