<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>I'm using free radius server 2.1.11 on Linux Enterprise Server 6.1.<BR>OS: Linux Enterprise Server 6.1<BR>Radius: free radius server 2.1.11<BR>Database: Mysql<BR></DIV>
<DIV>I got a WIFI network, using one radius server.</DIV>
<DIV> </DIV>
<DIV>The whole thing works fine.</DIV>
<DIV> </DIV>
<DIV>I got a requirement, which is, after each successful WIFI connection, one record need be added into connectionlog table.</DIV>
<DIV> </DIV>
<DIV>CREATE TABLE connectionlog (<BR> radacctid bigint(21) NOT NULL auto_increment,<BR> acctsessionid varchar(64) NOT NULL default '',<BR> acctuniqueid varchar(32) NOT NULL default '',<BR> username varchar(64) NOT NULL default '',<BR> groupname varchar(64) NOT NULL default '',<BR> realm varchar(64) default '',<BR> nasipaddress varchar(15) NOT NULL default '',<BR> nasportid varchar(15) default NULL,<BR> nasporttype varchar(32) default NULL,<BR> acctstarttime datetime NULL default NULL,<BR> acctstoptime datetime NULL default NULL,<BR> acctsessiontime int(12) default NULL,<BR> acctauthentic varchar(32) default NULL,<BR> connectinfo_start varchar(50) default NULL,<BR> connectinfo_stop varchar(50) default NULL,<BR> acctinputoctets bigint(20) default NULL,<BR> acctoutputoctets bigint(20) default NULL,<BR> calledstationid varchar(50) NOT NULL default '',<BR> callingstationid varchar(50) NOT NULL default '',<BR> acctterminatecause varchar(32) NOT NULL default '',<BR> servicetype varchar(32) default NULL,<BR> framedprotocol varchar(32) default NULL,<BR> framedipaddress varchar(15) NOT NULL default '',<BR> acctstartdelay int(12) default NULL,<BR> acctstopdelay int(12) default NULL,<BR> xascendsessionsvrkey varchar(10) default NULL,<BR> PRIMARY KEY (radacctid),<BR> KEY username (username),<BR> KEY framedipaddress (framedipaddress),<BR> KEY acctsessionid (acctsessionid),<BR> KEY acctsessiontime (acctsessiontime),<BR> KEY acctuniqueid (acctuniqueid),<BR> KEY acctstarttime (acctstarttime),<BR> KEY acctstoptime (acctstoptime),<BR> KEY nasipaddress (nasipaddress)<BR>) ;<BR></DIV>
<DIV>Can you please kindly advise how to do this?</DIV>
<DIV> </DIV>
<DIV>Which file should be edited?</DIV>
<DIV> </DIV>
<DIV>Where is the context to put in the script?</DIV>
<DIV> </DIV>
<DIV>What is the script?</DIV>
<DIV> </DIV>
<DIV>Thanks!</DIV>
<DIV> </DIV>
<DIV>Tom</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>