. All rights reserved. */ /* ========================================================================== */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ========================================================================== */ ]]> Describe your package requirements here Currently there are no FAQ items provided. freeradiussqlconf none FreeRADIUS: SQL pkg_edit.php?xml=freeradiussqlconf.xml&id=0 /usr/local/pkg/freeradius.inc Users /pkg.php?xml=freeradius.xml NAS / Clients /pkg.php?xml=freeradiusclients.xml Interfaces /pkg.php?xml=freeradiusinterfaces.xml Settings /pkg_edit.php?xml=freeradiussettings.xml&id=0 EAP /pkg_edit.php?xml=freeradiuseapconf.xml&id=0 SQL /pkg_edit.php?xml=freeradiussqlconf.xml&id=0 View config /freeradius_view_config.php Enable SQL Database listtopic Enable SQL Configuration varsqlconfenable $INCLUDE sql.conf]]> select #\$INCLUDE sql.conf Enable MySQL Counter varsqlconfenablecounter $INCLUDE sql/mysql/counter.conf]]> select #\$INCLUDE sql/mysql/counter.conf SQL Database Configuration listtopic Database Type varsqlconfdatabase select mysql Server IP Address varsqlconfserver input localhost Server Port Address varsqlconfport input 3306 Database Username varsqlconflogin input radius Database Password varsqlconfpassword password radpass Database Table Configuration varsqlconfradiusdb For all except Oracle choose: radius
For Oracle change and paste the following line according your environment:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=your_sid)))]]>
input radius
Accounting Table 1 (Start) varsqlconfaccttable1 input radacct Accounting Table 2 (Stop) varsqlconfaccttable2 input radacct Post Auth Table varsqlconfpostauthtable input radpostauth Auth Check Table varsqlconfauthchecktable input radcheck Auth Reply Table varsqlconfauthreplytable input radreply Group Check Table varsqlconfgroupchecktable input radgroupcheck Group Reply Table varsqlconfgroupreplytable input radgroupreply User Group Table varsqlconfusergrouptable input radusergroup Read the Group Tables varsqlconfreadgroups yes (default) we read the group tables.
If set to no the user must have Fall-Through = Yes in the radreply table]]>
select yes
Delete Stale Sessions varsqlconfdeletestalesessions select yes Print all SQL Statements varsqlconfsqltrace select no Number of SQL Connections varsqlconfnumsqlsocks input 5 Failed Database Connection Delay varsqlconfconnectfailureretrydelay input 60 SQL Socket Lifetime varsqlconflifetime input 0 SQL Socket Maximum Queries varsqlconfmaxqueries input 0 Read Clients from Database varsqlconfreadclients yes to read radius clients from the database ('nas' table). Clients will only be read on server startup. (Default: yes)]]> select yes RADIUS Client Table varsqlconfnastable input nas
freeradius_sqlconf_resync(); freeradius_serverdefault_resync(); freeradius_settings_resync(); freeradius_sqlconf_resync(); freeradius_serverdefault_resync(); freeradius_settings_resync();