Developers guide
Chapter 5
Copyright © 2008-2013 Inverse inc.
Configuration 33
# radtest dd9999 Abcd1234 localhost:18120 12 testing123
Sending Access-Request of id 74 to 127.0.0.1 port 18120
User-Name = "dd9999"
User-Password = "Abcd1234"
NAS-IP-Address = 255.255.255.255
NAS-Port = 12
rad_recv: Access-Accept packet from host 127.0.0.1:18120, id=74, length=20
Debug
First, check the FreeRADIUS logs. The file is located at /usr/local/pf/logs/radius.log.
If this didn’t help, run FreeRADIUS in debug mode. To do so, start it using the following command:
# radiusd -X -d /usr/local/pf/raddb
Additionally there is a raddebug tool that can extract debug logs from a running FreeRADIUS daemon.
PacketFence’s FreeRADIUS is preconfigured with such support.
In order to have an output from raddebug, you need to either:
a.
Make sure user pf has a shell in /etc/passwd, add /usr/sbin to PATH (export PATH=/usr/sbin:
$PATH) and execute raddebug as pf
b.
Run raddebug as root (less secure!)
Now you can run raddebug easily:
raddebug -t 300 -d /usr/local/pf/raddb
The above will output FreeRADIUS' debug logs for 5 minutes. See man raddebug for all the options.
Starting PacketFence Services
Once PacketFence is fully installed and configured, start the services using the following command :
service packetfence start
You may verify using the chkconfig command that the PacketFence service is automatically started at
boot time.