blob: d04a711a79a2bd596fb3a844f27c4726448ccc6e [file] [log] [blame]
Chetan Gaonker7f4bf742016-05-04 15:56:08 -07001# -*- text -*-
2##
3## admin.sql -- MySQL commands for creating the RADIUS user.
4##
5## WARNING: You should change 'localhost' and 'radpass'
6## to something else. Also update raddb/sql.conf
7## with the new RADIUS password.
8##
9## $Id: aff0505a473c67b65cfc19fae079454a36d4e119 $
10
11#
12# Create default administrator for RADIUS
13#
14CREATE USER 'radius'@'localhost';
15SET PASSWORD FOR 'radius'@'localhost' = PASSWORD('radpass');
16
17# The server can read any table in SQL
18GRANT SELECT ON radius.* TO 'radius'@'localhost';
19
20# The server can write to the accounting and post-auth logging table.
21#
22# i.e.
23GRANT ALL on radius.radacct TO 'radius'@'localhost';
24GRANT ALL on radius.radpostauth TO 'radius'@'localhost';