Changeset 47
- Timestamp:
- 05/22/07 22:18:36
(2 years ago)
- Author:
- csellers
- Message:
enforce upper limit of deny when using deny_interval. This upper limit is actually TALLYLOG_FAIL_TIME_COUNT (not one less as previously noted).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r43 |
r47 |
|
| 24 | 24 | |
|---|
| 25 | 25 | * deny_interval=n (Only deny access if tally for this user |
|---|
| 26 | | exceeds limit within n second time interval. Requires |
|---|
| 27 | | deny=8 or less.) |
|---|
| | 26 | exceeds limit within n second time interval. Requires |
|---|
| | 27 | deny=9 or less.) |
|---|
| 28 | 28 | |
|---|
| 29 | 29 | * lock_time=n (Deny access for n seconds after every failed |
|---|
| r46 |
r47 |
|
| 594 | 594 | tally.fail_time[last_fail] = time(NULL); |
|---|
| 595 | 595 | |
|---|
| | 596 | if (opts->deny_interval && opts->deny > TALLYLOG_FAIL_TIME_COUNT) { |
|---|
| | 597 | pam_syslog(pamh, LOG_ALERT, |
|---|
| | 598 | "warning: deny cannot be greater than: %d when using deny_interval", |
|---|
| | 599 | TALLYLOG_FAIL_TIME_COUNT); |
|---|
| | 600 | opts->deny = TALLYLOG_FAIL_TIME_COUNT; |
|---|
| | 601 | } |
|---|
| | 602 | |
|---|
| 596 | 603 | while (opts->deny_interval && |
|---|
| 597 | 604 | tally.fail_cnt < opts->deny && |
|---|
Download in other formats:
* Generating other formats may take time.