mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 22:39:25 +01:00
update freeradius
This commit is contained in:
24
freeradius/mysql/00-setup.sql
Normal file
24
freeradius/mysql/00-setup.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
# -*- text -*-
|
||||
##
|
||||
## admin.sql -- MySQL commands for creating the RADIUS user.
|
||||
##
|
||||
## WARNING: You should change '%' and 'radpass'
|
||||
## to something else. Also update raddb/sql.conf
|
||||
## with the new RADIUS password.
|
||||
##
|
||||
## $Id: aff0505a473c67b65cfc19fae079454a36d4e119 $
|
||||
|
||||
#
|
||||
# Create default administrator for RADIUS
|
||||
#
|
||||
CREATE USER 'radius'@'%';
|
||||
SET PASSWORD FOR 'radius'@'%' = PASSWORD('radpass');
|
||||
|
||||
# The server can read any table in SQL
|
||||
GRANT SELECT ON radius.* TO 'radius'@'%';
|
||||
|
||||
# The server can write to the accounting and post-auth logging table.
|
||||
#
|
||||
# i.e.
|
||||
GRANT ALL on radius.radacct TO 'radius'@'%';
|
||||
GRANT ALL on radius.radpostauth TO 'radius'@'%';
|
||||
Reference in New Issue
Block a user