<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:#000000;background-color:#ffffff;width:100%;'><tr><td valign='top' style='font: inherit;'><P>Hello,<BR>I am developing a small project to manage accounts provided by a captive<BR>portal solution chillispot-freeradius-mysql, and I need help about working with<BR>sql tables to do those few tasks the web interface should provide to admin users.<BR>I need to know how to:</P>
<P>- add an account</P>
<P>- remove an account</P>
<P>- show all accounts with the total time of all their connections</P>
<P>From what I understand, add an account is simple, all I have to do is add a record<BR>to radcheck table like after checked that the username is not already present:</P>
<P> </P>
<P>mysql> select username from radcheck where username = 'John Doe';</P>
<P>..</P>
<P>(if 0 rows returned, continue)</P>
<P> </P>
<P>mysql> insert into radcheck (username, attribute, value) values ('John Doe', 'Password', 'x2jadfds');</P>
<P><BR>However in an example from the oreilly book that the op is left as the default value ('=='),<BR>while in another software that do a task like what I what should like to do (phpmyprepaid),<BR>the attribute is "User-Password", and the op is ":=". What difference?</P>
<P> </P>
<P>To remove an account, I should delete all the records in radcheck that have the username<BR>I want to remove, so:</P>
<P> </P>
<P>mysql> delete from radcheck where username = 'John Doe';</P>
<P> </P>
<P>But I would like to know, if the user has currently a session active, i.e.<BR>it is connected to the service provided, it is immediately disconnected or<BR>the session continue?</P>
<P>And moreover, I have some problems with radacct.<BR>How to do the last task?<BR>On the web I found few resources about manage freeradius with mysql.<BR>Suggestions? Links?<BR>Thanks,<BR>            tano<BR></P></td></tr></table><br>





      <hr size=1><font face="Arial" size="2">Scopri il <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F"> Blog di Yahoo! Mail</a>: trucchi, novità, consigli... e la tua opinione!</font>