| 1 |
= The Administration CLI |
| 2 |
|
| 3 |
*Goal:* To understand how to use the `radmin` command. |
| 4 |
|
| 5 |
*Time:* 20-30 minutes |
| 6 |
|
| 7 |
*File:* |
| 8 |
|
| 9 |
- `etc/raddb/sites-enabled/control-socket` |
| 10 |
|
| 11 |
*`man` page:* radmin, raddebug |
| 12 |
|
| 13 |
The `radmin` command is an interactive command-line interface (CLI) to |
| 14 |
the internals of the server. It can be used to monitor statistics, to |
| 15 |
show the current configuration, and to change the configuration. |
| 16 |
|
| 17 |
Check that the control socket is enabled, and start the server in |
| 18 |
debugging mode. Connect to the control socket via `radmin`. Type `help`, |
| 19 |
and read the output. Use `radtest` to send the server packets, and see |
| 20 |
how the statistics change. |
| 21 |
|
| 22 |
== Questions |
| 23 |
|
| 24 |
1. How can you modify the `control-socket` file so that you can change |
| 25 |
the server configuration? |
| 26 |
2. What happens when you disable a module and try to authenticate a |
| 27 |
user? |
| 28 |
3. How can you run a command from the shell without starting the |
| 29 |
`radmin` command? |
| 30 |
4. Can you start the server in non-debugging mode (`radiusd -f`), and |
| 31 |
still see the debugging output? How? |
| 32 |
|
| 33 |
// Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0. |
| 34 |
// This documentation was developed by Network RADIUS SAS. |