Hello, Is there any way I can terminate a specific user's session server side? Any solution as close to PHP as it gets would be great. Maybee I can immitate somehow the package sent to the access point to notice the session is terminated, or maybee there is a command line or something... At this point in my script I have the user's credentials, the access point's IP and listening port. I hope I can get somewhere from there. Thanks in advance. Benoit
On 26/04/2014 13:07, Benoit wrote:
Hello,
Is there any way I can terminate a specific user's session server side? Any solution as close to PHP as it gets would be great. Maybee I can immitate somehow the package sent to the access point to notice the session is terminated, or maybee there is a command line or something...
At this point in my script I have the user's credentials, the access point's IP and listening port. I hope I can get somewhere from there.
This depends on your NAS (i.e. access point). If the NAS support packet-of-disconnect or CoA, you can send them a radius request, directed to the NAS, to disconnect the session. The command line tool "radclient" can be used to send these. Consult the docs for your NAS to find out what attributes you will need to send - commonly you'll need username and accouting session ID. If the NAS doesn't support PoD/CoA, you will need to again consult the NAS docs for other methods, such as using SNMP or expect/telnet to remove a session.
participants (2)
-
Benoit -
Phil Mayers