To test the RADIUS server directly, execute inside the VM:
...
Test | ||||||||
---|---|---|---|---|---|---|---|---|
sudo radtest testuser1 password1 localhost 1812 testing123 | ||||||||
check MySQL database | ||||||||
sudo mysql -u root -psecret radius | ||||||||
| ||||||||
show databases | ||||||||
show databases; | ||||||||
show tables | ||||||||
show tables; | ||||||||
List nas | ||||||||
select * from nas; | ||||||||
| ||||||||
List users | ||||||||
select * from radcheck; | ||||||||
| ||||||||
SELECT id, username, attribute, value, op FROM radcheck ORDER BY id; | ||||||||
| ||||||||
SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'testuser1' ORDER BY id; | ||||||||
SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'testuser1' ORDER BY id; | ||||||||
SELECT id, username, attribute, value, op FROM radreply WHERE username = 'testuser1' ORDER BY id; | ||||||||
SELECT groupname FROM radusergroup WHERE username = 'testuser1' ORDER BY priority; | ||||||||
INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( 'testuser1','testpwd','Access-Accept', '2018-01-26 22:07:14'); |
...