1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/freeradius/mysql
2016-07-28 13:35:00 +08:00
..
00-setup.sql update freeradius 2016-07-28 13:35:00 +08:00
01-schema.sql update freeradius 2016-07-28 13:35:00 +08:00
README.md update freeradius 2016-07-28 13:35:00 +08:00

FreeRadius MySQL

SQL Patch

$ wget https://github.com/FreeRADIUS/freeradius-server/raw/release_3_0_11/raddb/mods-config/sql/main/mysql/setup.sql
$ wget https://github.com/FreeRADIUS/freeradius-server/raw/release_3_0_11/raddb/mods-config/sql/main/mysql/schema.sql

File: 00-setup.sql

#
#  Create default administrator for RADIUS
#
CREATE USER [-'radius'@'localhost';-]{+'radius'@'%';+}
SET PASSWORD FOR [-'radius'@'localhost'-]{+'radius'@'%'+} = PASSWORD('radpass');

# The server can read any table in SQL
GRANT SELECT ON radius.* TO [-'radius'@'localhost';-]{+'radius'@'%';+}

# The server can write to the accounting and post-auth logging table.
#
#  i.e.
GRANT ALL on radius.radacct TO [-'radius'@'localhost';-]{+'radius'@'%';+}
GRANT ALL on radius.radpostauth TO [-'radius'@'localhost';-]{+'radius'@'%';+}

File: 01-schema.sql

@@ -1,5 +1,8 @@
+CREATE DATABASE radius;
+USE radius;

MySQL Setup

server = "mysql"
port = 3306
login = "radius"
password = "radpass"
radius_db = "radius"