Commit be8b5f28 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add login_failures tbale and failure slots to users table. Both are

for tracking login attacks.
parent be8ec434
......@@ -547,6 +547,18 @@ CREATE TABLE login (
PRIMARY KEY (uid)
) TYPE=MyISAM;
--
-- Table structure for table `login_failures`
--
CREATE TABLE login_failures (
IP varchar(15) NOT NULL default '1.1.1.1',
frozen tinyint(3) unsigned NOT NULL default '0',
failcount smallint(5) unsigned NOT NULL default '0',
failstamp int(10) unsigned NOT NULL default '0',
PRIMARY KEY (IP)
) TYPE=MyISAM;
--
-- Table structure for table `loginmessage`
--
......@@ -1407,6 +1419,9 @@ CREATE TABLE users (
widearearoot tinyint(4) default '0',
wideareajailroot tinyint(4) default '0',
notes text,
weblogin_frozen tinyint(3) unsigned NOT NULL default '0',
weblogin_failcount smallint(5) unsigned NOT NULL default '0',
weblogin_failstamp int(10) unsigned NOT NULL default '0',
PRIMARY KEY (uid),
KEY unix_uid (unix_uid),
KEY status (status)
......
......@@ -1063,3 +1063,20 @@ last_net_act,last_cpu_act,last_ext_act);
select pid,eid,vnode,vname,SUBSTRING(arguments,9) \
from eventlist where objecttype=4 and eventtype=1;
1.197: Add login failure stuff to users table, and add new table to
track login failures from specific IP addresses.
alter table users add weblogin_frozen tinyint unsigned \
NOT NULL default '0';
alter table users add weblogin_failcount smallint unsigned \
NOT NULL default '0';
alter table users add weblogin_failstamp int unsigned \
NOT NULL default '0';
CREATE TABLE login_failures (
IP varchar(15) NOT NULL default '1.1.1.1',
frozen tinyint unsigned NOT NULL default '0',
failcount smallint unsigned NOT NULL default '0',
failstamp int unsigned NOT NULL default '0',
PRIMARY KEY (IP)
) TYPE=MyISAM;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment