Hi,
I am trying to disconnect users with the instructions given at <http://wiki.freeradius.org/Disconnect-Messages>. I made a packet.txt file with the following content:
Acct-Session-Id=4E4EB0DE083800
User-Name=amin
X-Ascend-Session-Svr-Key=
NAS-IP-Address=127.0.0.1
Then run the following command:
root@ubuntu:~/kill# cat packet.txt | radclient -x 127.0.0.1:3799 disconnect "testing123"
And the result was:
radclient:: failed to get value
radclient: Nothing to send.
Well, "xascendsessionsvrkey" field had no value so I though I have to set it to null.
mysql> SELECT radacctid,acctsessionid,username,realm,nasipaddress,nasportid,framedipaddress,xascendsessionsvrkey FROM radacct ORDER BY radacctid DESC LIMIT 1;
+-----------+----------------+----------+-------+--------------+-----------+-----------------+----------------------+
| radacctid | acctsessionid | username | realm | nasipaddress | nasportid | framedipaddress | xascendsessionsvrkey |
+-----------+----------------+----------+-------+--------------+-----------+-----------------+----------------------+
| 24 | 4E4EB0DE083800 | amin | | 127.0.1.1 | 0 | 10.1.2.2 | |
+-----------+----------------+----------+-------+--------------+-----------+-----------------+----------------------+
1 row in set (0.00 sec)
Could you give a working Packet of Disconnect example cause it will not work if I eliminate "X-Ascend-Session-Svr-Key" or set a NULL value for it.
Thanks in advance,
Moby
freeRADIUS version: 2.1.11
Operating System: Ubuntu Netbook 10 (Linux ubuntu 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux)