Testing » History » Version 1
Luke Murphey, 10/28/2016 08:03 PM
1 | 1 | Luke Murphey | h1. Testing |
---|---|---|---|
2 | 1 | Luke Murphey | |
3 | 1 | Luke Murphey | h2. Install a RADIUS server (FreeRADIUS) |
4 | 1 | Luke Murphey | |
5 | 1 | Luke Murphey | Install FreeRADIUS per directions for your OS. On mac, you can install it via brew: |
6 | 1 | Luke Murphey | |
7 | 1 | Luke Murphey | <pre> |
8 | 1 | Luke Murphey | brew install freeradius-server |
9 | 1 | Luke Murphey | </pre> |
10 | 1 | Luke Murphey | |
11 | 1 | Luke Murphey | h2. Setup a user |
12 | 1 | Luke Murphey | |
13 | 1 | Luke Murphey | Create a user for testing bu adding one to the users config file (raddb/users). The actual path varies. On a Mac with FreeRADIUS 3.0.12, the file is at /usr/local/Cellar/freeradius-server/3.0.12/etc/raddb/. |
14 | 1 | Luke Murphey | |
15 | 1 | Luke Murphey | I usually just use the example that is suggested in the FreeRADIUS docs: |
16 | 1 | Luke Murphey | |
17 | 1 | Luke Murphey | <pre> |
18 | 1 | Luke Murphey | bob Cleartext-Password := "hello" |
19 | 1 | Luke Murphey | Reply-Message := "Hello, %{User-Name}" |
20 | 1 | Luke Murphey | </pre> |
21 | 1 | Luke Murphey | |
22 | 1 | Luke Murphey | h2. Test your RADIUS server with radtest |
23 | 1 | Luke Murphey | |
24 | 1 | Luke Murphey | Start Free in debugging mode: |
25 | 1 | Luke Murphey | |
26 | 1 | Luke Murphey | <pre> |
27 | 1 | Luke Murphey | radiusd -X |
28 | 1 | Luke Murphey | </pre> |
29 | 1 | Luke Murphey | |
30 | 1 | Luke Murphey | Next, run radtest against the server: |
31 | 1 | Luke Murphey | |
32 | 1 | Luke Murphey | <pre> |
33 | 1 | Luke Murphey | radtest bob hello localhost 0 testing123 |
34 | 1 | Luke Murphey | </pre> |
35 | 1 | Luke Murphey | |
36 | 1 | Luke Murphey | If successful, you should see a message ending with: |
37 | 1 | Luke Murphey | |
38 | 1 | Luke Murphey | <pre> |
39 | 1 | Luke Murphey | Received Access-Accept Id 238 from 127.0.0.1:1812 to 0.0.0.0:0 length 32 |
40 | 1 | Luke Murphey | Reply-Message = "Hello, bob" |
41 | 1 | Luke Murphey | </pre> |
42 | 1 | Luke Murphey | |
43 | 1 | Luke Murphey | h2. Setup Splunk |
44 | 1 | Luke Murphey | |
45 | 1 | Luke Murphey | Install Splunk and the RADIUS authentication app. |