<br><br>
<div><span class="gmail_quote">On 8/21/07, <b class="gmail_sendername">Josh Howlett</b> <<a href="mailto:Josh.Howlett@ja.net">Josh.Howlett@ja.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Post mysql.sql to the list.</blockquote>
<div> </div>
<div>
<p>###########################################################################<br># db_mysql.sql rlm_sql - FreeRADIUS SQL Module #<br># #
<br># Database schema for MySQL rlm_sql module #<br># #<br># To load: #
<br># mysql -uroot -prootpass radius < db_mysql.sql #<br># #<br># Mike Machado <<a href="mailto:mike@innercite.com">
mike@innercite.com</a>> #<br>###########################################################################<br>#<br># Table structure for table 'radacct'<br>#</p>
<p>CREATE TABLE radacct (<br> RadAcctId bigint(21) NOT NULL auto_increment,<br> AcctSessionId varchar(32) NOT NULL default '',<br> AcctUniqueId varchar(32) NOT NULL default '',<br> UserName 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 NOT NULL default '0000-00-00 00:00:00',
<br> AcctStopTime datetime NOT NULL default '0000-00-00 00:00:00',<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(12) default NULL,<br> AcctOutputOctets bigint(12) 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> PRIMARY KEY (RadAcctId),<br> KEY UserName (UserName),<br> KEY FramedIPAddress (FramedIPAddress),<br> KEY AcctSessionId (AcctSessionId),<br> KEY AcctUniqueId (AcctUniqueId),
<br> KEY AcctStartTime (AcctStartTime),<br> KEY AcctStopTime (AcctStopTime),<br> KEY NASIPAddress (NASIPAddress)<br>) ;</p>
<p>#<br># Table structure for table 'radcheck'<br>#</p>
<p>CREATE TABLE radcheck (<br> id int(11) unsigned NOT NULL auto_increment,<br> UserName varchar(64) NOT NULL default '',<br> Attribute varchar(32) NOT NULL default '',<br> op char(2) NOT NULL DEFAULT '==',
<br> Value varchar(253) NOT NULL default '',<br> PRIMARY KEY (id),<br> KEY UserName (UserName(32))<br>) ;</p>
<p>#<br># Table structure for table 'radgroupcheck'<br>#</p>
<p>CREATE TABLE radgroupcheck (<br> id int(11) unsigned NOT NULL auto_increment,<br> GroupName varchar(64) NOT NULL default '',<br> Attribute varchar(32) NOT NULL default '',<br> op char(2) NOT NULL DEFAULT '==',
<br> Value varchar(253) NOT NULL default '',<br> PRIMARY KEY (id),<br> KEY GroupName (GroupName(32))<br>) ;</p>
<p>#<br># Table structure for table 'radgroupreply'<br>#</p>
<p>CREATE TABLE radgroupreply (<br> id int(11) unsigned NOT NULL auto_increment,<br> GroupName varchar(64) NOT NULL default '',<br> Attribute varchar(32) NOT NULL default '',<br> op char(2) NOT NULL DEFAULT '=',
<br> Value varchar(253) NOT NULL default '',<br> PRIMARY KEY (id),<br> KEY GroupName (GroupName(32))<br>) ;</p>
<p>#<br># Table structure for table 'radreply'<br>#</p>
<p>CREATE TABLE radreply (<br> id int(11) unsigned NOT NULL auto_increment,<br> UserName varchar(64) NOT NULL default '',<br> Attribute varchar(32) NOT NULL default '',<br> op char(2) NOT NULL DEFAULT '=',
<br> Value varchar(253) NOT NULL default '',<br> PRIMARY KEY (id),<br> KEY UserName (UserName(32))<br>) ;</p>
<p><br>#<br># Table structure for table 'usergroup'<br>#</p>
<p>CREATE TABLE usergroup (<br> UserName varchar(64) NOT NULL default '',<br> GroupName varchar(64) NOT NULL default '',<br> priority int(11) NOT NULL default '1',<br> KEY UserName (UserName(32))
<br>) ;</p>
<p>#<br># Table structure for table 'radpostauth'<br>#</p>
<p>CREATE TABLE radpostauth (<br> id int(11) NOT NULL auto_increment,<br> user varchar(64) NOT NULL default '',<br> pass varchar(64) NOT NULL default '',<br> reply varchar(32) NOT NULL default '',
<br> date timestamp(14) NOT NULL,<br> PRIMARY KEY (id)<br>) ;</p>
<p>######################################################################<br>#<br># The next table is commented out because it is not<br># currently used in the server.<br>#</p>
<p>#<br># Table structure for table 'dictionary'<br>#<br>#CREATE TABLE dictionary (<br># id int(10) DEFAULT '0' NOT NULL auto_increment,<br># Type varchar(30),<br># Attribute varchar(64),<br># Value varchar(64),
<br># Format varchar(20),<br># Vendor varchar(32),<br># PRIMARY KEY (id)<br>#);</p>
<p>#<br># Table structure for table 'nas'<br>#<br>CREATE TABLE nas (<br> id int(10) NOT NULL auto_increment,<br> nasname varchar(128) NOT NULL,<br> shortname varchar(32),<br> type varchar(30) DEFAULT 'other',
<br> ports int(5),<br> secret varchar(60) DEFAULT 'secret' NOT NULL,<br> community varchar(50),<br> description varchar(200) DEFAULT 'RADIUS Client',<br> PRIMARY KEY (id),<br> KEY nasname (nasname)<br>
);</p>
<p> </p>
<p> </p>
<p>ram<br></p></div></div>