feat: add PostgreSQL schema initialization and FreeRADIUS SQL module configuration
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 3m51s
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 3m51s
This commit is contained in:
@@ -8,8 +8,23 @@ sql {
|
|||||||
password = "radpass"
|
password = "radpass"
|
||||||
radius_db = "radius"
|
radius_db = "radius"
|
||||||
|
|
||||||
read_clients = yes
|
# Standard FreeRADIUS SQL Table Mappings
|
||||||
|
authcheck_table = "radcheck"
|
||||||
|
authreply_table = "radreply"
|
||||||
|
groupcheck_table = "radgroupcheck"
|
||||||
|
groupreply_table = "radgroupreply"
|
||||||
|
usergroup_table = "radusergroup"
|
||||||
|
|
||||||
|
# Accounting Table Mappings
|
||||||
|
acct_table1 = "radacct"
|
||||||
|
acct_table2 = "radacct"
|
||||||
|
|
||||||
|
# Post-auth Table Mapping
|
||||||
|
postauth_table = "radpostauth"
|
||||||
|
|
||||||
|
# NAS Client Table Mapping
|
||||||
client_table = "nas"
|
client_table = "nas"
|
||||||
|
read_clients = yes
|
||||||
|
|
||||||
group_attribute = "User-Group"
|
group_attribute = "User-Group"
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,15 @@ CREATE TABLE IF NOT EXISTS nas (
|
|||||||
description VARCHAR(200) DEFAULT 'RADIUS Client'
|
description VARCHAR(200) DEFAULT 'RADIUS Client'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS radpostauth (
|
||||||
|
id BIGSERIAL PRIMARY KEY,
|
||||||
|
username VARCHAR(64) NOT NULL DEFAULT '',
|
||||||
|
pass VARCHAR(64) NOT NULL DEFAULT '',
|
||||||
|
reply VARCHAR(32) NOT NULL DEFAULT '',
|
||||||
|
authdate TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
|
CREATE INDEX IF NOT EXISTS radpostauth_username ON radpostauth (username);
|
||||||
|
|
||||||
-- Application Management Tables
|
-- Application Management Tables
|
||||||
CREATE TABLE IF NOT EXISTS guest_profiles (
|
CREATE TABLE IF NOT EXISTS guest_profiles (
|
||||||
id SERIAL PRIMARY KEY,
|
id SERIAL PRIMARY KEY,
|
||||||
|
|||||||
Reference in New Issue
Block a user