summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-08-04 14:54:05 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-08-04 14:54:05 -0400
commit7d81ad0206e14c298a6e0fe194a2442fe0cb5d6a (patch)
treec8627010d02d58205c0f86da308835509de0c632 /src
parent86d77907310fa939fe89884fbbdf2142c06a420e (diff)
downloadsssd-7d81ad0206e14c298a6e0fe194a2442fe0cb5d6a.tar.gz
sssd-7d81ad0206e14c298a6e0fe194a2442fe0cb5d6a.tar.bz2
sssd-7d81ad0206e14c298a6e0fe194a2442fe0cb5d6a.zip
Revert "Allow LDAP to decide when an expiration warning is warranted"
This reverts commit b0b9c38dfce3e3ccbfaa4d00fdf2ea08a70d41a6.
Diffstat (limited to 'src')
-rw-r--r--src/responder/pam/pamsrv_cmd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 7fcf9854..3c9d7600 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"));