aboutsummaryrefslogtreecommitdiffstats
path: root/notes/projects/radius/sql/ippool-database.sql
blob: 660e676a1ccfe6272106149f733e62629c78e0a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *  IP Engineering RADIUS Servers
 *
 *  ippool-database.sql - builds roles and database for RADIUS IP Pools
 *
 *  Usage:  psql -f ippool-database.sql
 *
 */


SET ROLE wheel;
SET client_min_messages TO WARNING;
\set ON_ERROR_STOP on


CREATE ROLE radius_ippool
  WITH              NOSUPERUSER
                    NOCREATEDB
                    NOCREATEROLE
                    NOINHERIT
                    NOLOGIN
                    NOREPLICATION
                    NOBYPASSRLS
                    ADMIN           admin;


CREATE DATABASE radius_ippool
  WITH              OWNER           = radius_ippool
                    ENCODING        = "UTF8"
                    LC_COLLATE      = "en_US.UTF-8"
                    LC_CTYPE        = "en_US.UTF-8";


/* end of sql */