aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.eap_user_sqlite
blob: 411b9eafa264335a7022bd3a34b0995f5500ded9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
CREATE TABLE users(
	identity TEXT PRIMARY KEY,
	methods TEXT,
	password TEXT,
	remediation TEXT,
	phase2 INTEGER,
	t_c_timestamp INTEGER
);

CREATE TABLE wildcards(
	identity TEXT PRIMARY KEY,
	methods TEXT
);

INSERT INTO users(identity,methods,password,phase2) VALUES ('user','TTLS-MSCHAPV2','password',1);
INSERT INTO users(identity,methods,password,phase2) VALUES ('DOMAIN\mschapv2 user','TTLS-MSCHAPV2','password',1);

INSERT INTO wildcards(identity,methods) VALUES ('','TTLS,TLS');
INSERT INTO wildcards(identity,methods) VALUES ('0','AKA');

CREATE TABLE authlog(
	timestamp TEXT,
	session TEXT,
	nas_ip TEXT,
	username TEXT,
	note TEXT
);

CREATE TABLE pending_tc(
	mac_addr TEXT PRIMARY KEY,
	identity TEXT
);

CREATE TABLE current_sessions(
	mac_addr TEXT PRIMARY KEY,
	identity TEXT,
	start_time TEXT,
	nas TEXT,
	hs20_t_c_filtering BOOLEAN,
	waiting_coa_ack BOOLEAN,
	coa_ack_received BOOLEAN
);