Multiple databases on the same freeradius

Issue

I am wondering if there are any way to use two different databases within the same freeradius instance?

ubuntu 22.04

freeradius 3.0

mysql 8.0

Solution

describe your scenario in details

$ cd /etc/freeradius/3.0/mods-enabled
$ cp ../mods-available/sql ../mods-available/sql1
$ cp ../mods-available/sql ../mods-available/sql2
$ ln -s ../mods-available/sql1 sql1
$ ln -s ../mods-available/sql2 sql2

$ nano ../mods-available/sql1
sql sql1 {
        group_attribute = "${.:instance}-SQL-Group"
#       group_attribute = "SQL-Group"
}

$ nano ../mods-available/sql2
sql sql2 {
        group_attribute = "${.:instance}-SQL-Group"
#       group_attribute = "SQL-Group"
}

$ nano ../sites-available/default
authorize {
#       -sql
        redundant-load-balance sql {
                sql1
                sql2
        }
}

Answered By – Andrey Grigorian

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published