mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
ee431d77a5
CONFIG_SQLITE=y option can now be used to allow the eap_user_file text file to be replaced with a SQLite database (eap_user_file=sqlite:/path/to/sqlite.db). hostapd.eap_user_sqlite shows an example of how the database tables can be created for this purpose. This commit does not yet include full functionality of the text file format, but at least basic EAP-TTLS/MSCHAPv2 style authentication mechanisms with plaintext passwords can be used for tests. Signed-hostap: Jouni Malinen <j@w1.fi>
18 lines
506 B
Plaintext
18 lines
506 B
Plaintext
CREATE TABLE users(
|
|
identity TEXT PRIMARY KEY,
|
|
methods TEXT,
|
|
password TEXT,
|
|
phase2 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');
|