php radius client (mount packet data)
Hello !! Based on 'Pure PHP radius class' (http://developer.sysco.ch/php/) i´m trying to implement "disconnect-packet" like this command: echo "User-Name := xxxxxx" | radclient -x 111.222.333.444 disconnect <secret> freeradius recognizes that packet are "disconnect-request" but i think checksum of packet are incorrect, can someone look and try to discover the error ?! attached class, my changes are commented with //AlexandrE thanks !!! -- Sds. Alexandre Jeronimo Correa Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net Linux User ID #142329 UNOTEL S/A - http://www.unotel.com.br
Pasting class source won't help. You need to ask specific question. I believe that nobody here doesn't have enough time to read 1000 lines just to answer you. You can find all about POD in FreeRadius FAQ section. create shell script and call it when you need to disconnect someone. On Fri, Aug 8, 2008 at 8:29 AM, Alexandre J. Correa - Onda Internet < alexandre@ondainternet.com.br> wrote:
Hello !!
Based on 'Pure PHP radius class' (http://developer.sysco.ch/php/) i´m trying to implement "disconnect-packet" like this command:
echo "User-Name := xxxxxx" | radclient -x 111.222.333.444 disconnect <secret>
freeradius recognizes that packet are "disconnect-request" but i think checksum of packet are incorrect, can someone look and try to discover the error ?!
attached class, my changes are commented with //AlexandrE
thanks !!!
-- Sds.
Alexandre Jeronimo Correa
Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net
Linux User ID #142329
UNOTEL S/A - http://www.unotel.com.br
. List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Fri, Aug 08, 2008 at 03:29:15AM -0300, Alexandre J. Correa - Onda Internet wrote:
Hello !!
Based on 'Pure PHP radius class' (http://developer.sysco.ch/php/) i´m trying to implement "disconnect-packet" like this command:
echo "User-Name := xxxxxx" | radclient -x 111.222.333.444 disconnect <secret>
freeradius recognizes that packet are "disconnect-request" but i think checksum of packet are incorrect, can someone look and try to discover the error ?!
PoD need to be signed, like Accounting-Request. You can't just send them, like an Access-Request. For more details, see the radius RFCs. I don't see any sign of that code in the PHP class.
attached class, my changes are commented with //AlexandrE
thanks !!!
-- Sds.
Alexandre Jeronimo Correa
Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net
Linux User ID #142329
UNOTEL S/A - http://www.unotel.com.br
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Alexandre J. Correa - Onda Internet -
Marinko Tarlac -
Phil Mayers