authentication-procs-naviserver.tcl

Provides the caching implementation of the brute force login prevention feature.

Location:
packages/acs-authentication/tcl/authentication-procs-naviserver.tcl
Created:
28 Feb 2018
Author:
Guenter Ernst <guenter.ernst@wu.ac.at>
CVS Identification:
$Id: authentication-procs-naviserver.tcl,v 1.5.2.3 2021/10/05 15:43:09 antoniop Exp $

Procedures in this file

Detailed information

auth::login_attempts::all_entries (private)

 auth::login_attempts::all_entries

Get all login attempts

Returns:
list of triples in the form {key1 timeout1 number_of_attempts1 key2 ...}

Partial Call Graph (max 5 caller/called nodes):
%3 auth::login_attempts::get_all auth::login_attempts::get_all (public) auth::login_attempts::all_entries auth::login_attempts::all_entries auth::login_attempts::get_all->auth::login_attempts::all_entries

Testcases:
No testcase defined.

auth::login_attempts::flush_all (private)

 auth::login_attempts::flush_all

Flush all login attempt counters.

Partial Call Graph (max 5 caller/called nodes):
%3 auth::login_attempts::reset_all auth::login_attempts::reset_all (public) auth::login_attempts::flush_all auth::login_attempts::flush_all auth::login_attempts::reset_all->auth::login_attempts::flush_all

Testcases:
No testcase defined.

auth::login_attempts::get (private)

 auth::login_attempts::get -key key

Get the current number of login attempts of a user.

Switches:
-key (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth__login_attempts auth__login_attempts (test acs-authentication) auth::login_attempts::get auth::login_attempts::get test_auth__login_attempts->auth::login_attempts::get auth::login_attempts::threshold_reached_p auth::login_attempts::threshold_reached_p (private) auth::login_attempts::threshold_reached_p->auth::login_attempts::get

Testcases:
auth__login_attempts

auth::login_attempts::login_attempt_flush (private)

 auth::login_attempts::login_attempt_flush -key key

Flush the login attempts of a user.

Switches:
-key (required)

Partial Call Graph (max 5 caller/called nodes):
%3 auth::login_attempts::reset auth::login_attempts::reset (public) auth::login_attempts::login_attempt_flush auth::login_attempts::login_attempt_flush auth::login_attempts::reset->auth::login_attempts::login_attempt_flush

Testcases:
No testcase defined.

auth::login_attempts::login_attempt_incr (private)

 auth::login_attempts::login_attempt_incr -key key [ -max_age max_age ]

Increment the login attempts of a user. The max_age is specified in seconds.

Switches:
-key (required)
-max_age (optional, defaults to "21600")

Partial Call Graph (max 5 caller/called nodes):
%3 auth::login_attempts::record auth::login_attempts::record (private) auth::login_attempts::login_attempt_incr auth::login_attempts::login_attempt_incr auth::login_attempts::record->auth::login_attempts::login_attempt_incr

Testcases:
No testcase defined.
[ show source ]