ONO::ToolBox::Auth::ToolBox

Functions

bad_login_attempt();

Detect bad user login attempts, it order to block evil robots.

Failed logins are being logged to files by username and IP, the file size indicates the number of failed login attempts.

ONO::ToolBox::Auth::ToolBox->bad_login_attempt( );

bad_login_block();

React to bad user login attempts, it order to block evil robots.

Username fails are quite strict - 3 in a row using the same ip (100 seconds), 5 using different IPs, or 5 within 17 minutes

IP login fails are less aggressive, as there could be many users sharing a single ip rangs (companies, institutions, universities, schools, ...)

ONO::ToolBox::Auth::ToolBox->bad_login_block( );
returns: $block

login();

This is the login feature used by the ONO Admin and ONO Desk front end applications.

ONO::ToolBox::Auth::ToolBox->login( $db, $community, $vars_ref );
returns: \%vars

logout();

This is the logout feature used by the ONO Admin and ONO Desk front end applications.

ONO::ToolBox::Auth::ToolBox->logout( $db, $community, $vars_ref );
returns: \%vars

password_check();

Check the root user passsword.

ONO::ToolBox::Auth::ToolBox->password_check( $db, $community, $username, $password );
returns: $success

Sub-Modules

none

Dependencies