Project

General

Profile

Testing » History » Version 1

Version 1/4 - Next » - Current version
Luke Murphey, 10/28/2016 08:03 PM


Testing

Install a RADIUS server (FreeRADIUS)

Install FreeRADIUS per directions for your OS. On mac, you can install it via brew:

brew install freeradius-server

Setup a user

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/.

I usually just use the example that is suggested in the FreeRADIUS docs:

bob    Cleartext-Password := "hello" 
       Reply-Message := "Hello, %{User-Name}" 

Test your RADIUS server with radtest

Start Free in debugging mode:

radiusd -X

Next, run radtest against the server:

radtest bob hello localhost 0 testing123

If successful, you should see a message ending with:

Received Access-Accept Id 238 from 127.0.0.1:1812 to 0.0.0.0:0 length 32
    Reply-Message = "Hello, bob" 

Setup Splunk

Install Splunk and the RADIUS authentication app.

splunk.dictionary (94 Bytes) Luke Murphey, 10/30/2016 02:31 AM