<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you Daniel.<br>
<br>
I ended up doing this, and it seems to work fine, if I change the
router's checking to be much more often.<br>
<br>
Thanks, Chris<br>
<br>
<br>
On 25/07/2010 06:28, <a class="moz-txt-link-abbreviated" href="mailto:daniel@port.as">daniel@port.as</a> wrote:
<blockquote
cite="mid:755970743.114301.1280035733528.JavaMail.mail@webmail12"
type="cite">
<pre wrap="">This may seem a bit odd, but you cannot directly disconnect a user (well, not easily at least). What is usually done is to deny authorization to the user you want to disconnect the next time the authentication server is executed. That is, your authentication server code is run by the gateway (via an http request) every AUTH_CHECK_INTERVAL (whatever you configured on the gateway), one for each current user in the gateway and it passes the users token, mac, etc. in the query string (in PHP $_GET) . The gateway will take the output of your authentication server looking for particular messages. So to disconnect a user, you print the string "Auth: ACCOUNT_STATUS_DENIED" when the auth server is executed for the user you want disconnect. So the user will not be disconnected right away but no longer than AUTH_CHECK_INTERVAL. If that's too long, you can reduce this interval or you will have to write code that will directly change the iptables on the gateway router
.
I hope this helps.
Jul 23, 2010 04:52:52 AM, <a class="moz-txt-link-abbreviated" href="mailto:wifidog@listes.ilesansfil.org">wifidog@listes.ilesansfil.org</a> wrote:
===========================================
Hello. I've written my own auth server for a demo, and I have one thing left to do.
Basically, I need an admin control panel, where the administrator can see all the logged on users, and click a button to disconnect a particular one. I have read through the help forums, etc, and I saw something about a wifidog/disconnect command, but if I run it, whatever token/mac/ip I use, it disconnects the person running the command.
I tried this:
<a class="moz-txt-link-freetext" href="http://:2060/wifidog/auth?logout=1&mac=token=">http://:2060/wifidog/auth?logout=1&mac=token=</a> but that didn't seem to want to work...
Is there a way for me to disconnect a user, if I have their mac address, ip and there token (as I store them in a database atm)
Thanks for any help you could give me.
--
Chris Tate-Davies
Software Development
Inflight Productions Ltd
Telephone: 01295 269 680
15 Stukeley Street | London | WC2B 5LT
Email: <a class="moz-txt-link-abbreviated" href="mailto:chris.tatedavies@inflightproductions.com">chris.tatedavies@inflightproductions.com</a>
Web: <a class="moz-txt-link-abbreviated" href="http://www.inflightproductions.com">www.inflightproductions.com</a>
Registered Office: 15 Stukeley Street, London WC2B 5LT, England. Registered in England number 1421223
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. Please note that the information provided in this e-mail is in any case not legally binding; all committing statements require legally binding signatures.
<a class="moz-txt-link-freetext" href="http://www.inflightproductions.com">http://www.inflightproductions.com</a>
_______________________________________________
WiFiDog mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</a>
<a class="moz-txt-link-freetext" href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a>
_______________________________________________
WiFiDog mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</a>
<a class="moz-txt-link-freetext" href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<p> </p>
<p><font color="#666666"><font face="Trebuchet MS"><font
style="font-size: 11pt;" size="3"><b>Chris
Tate-Davies</b></font></font></font></p>
<p><font color="#ff7800"><font face="Trebuchet MS"><font size="2"><span
lang="en-GB"><b>Software
Development</b></span></font></font></font> <font
color="#335e93"><font face="Trebuchet MS"><font
style="font-size: 8pt;" size="1"><span lang="en-GB"><br>
Inflight
Productions Ltd<br>
Telephone: 01295 269 680<br>
15 Stukeley Street |
London | WC2B 5LT<br>
</span></font></font></font><font color="#335e93"><font
face="Trebuchet MS"><font style="font-size: 8pt;" size="1"><span
lang="en-GB"><b>Email:</b></span></font></font></font><font
color="#335e93"><font face="Trebuchet MS"><font
style="font-size: 8pt;" size="1"><span lang="en-GB">
<a
href="mailto:chris.tatedavies@inflightproductions.com">chris.tatedavies@inflightproductions.com</a><br>
</span></font></font></font><font color="#335e93"><font
face="Trebuchet MS"><font style="font-size: 8pt;" size="1"><span
lang="en-GB"><b>Web:</b></span></font></font></font><font
color="#335e93"><font face="Trebuchet MS"><font
style="font-size: 8pt;" size="1"><span lang="en-GB">
<a href="http://www.inflightproductions.com/">www.inflightproductions.com</a></span></font></font></font></p>
<p> </p>
<p style="margin-bottom: 0cm;"><br>
</p>
</div>
</body>
</html>
<html>
<head>
<style type="text/css">
body, a
{
font-family: "Arial", "Times New Roman";
font-size: 10pt;
}
</style>
</head>
<body>
<hr align="left" size="2" width="400">
<br />Registered Office: 15 Stukeley Street, London WC2B 5LT, England. Registered in England number 1421223
<br />
<br />This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited. Please note that the
information provided in this e-mail is in any case not legally binding; all
committing statements require legally binding signatures.
<br />
<br /><a href="http://www.inflightproductions.com" target="_blank">http://www.inflightproductions.com</a>
</body>
</html>