Freeradius2 and sqlite

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sat Aug 31 17:28:21 CEST 2013


On 31 Aug 2013, at 16:10, "Nong NgocDung" <nongdung at gmail.com> wrote:

> Hi Arran,
> 
> In sql.conf as follow:
> 
> ------------------------------------------------------------
> sql {
>        #
>        #  Set the database to one of:
>        #
>        #       mysql, mssql, oracle, postgresql
>        #
>        database = "mysql"
> 
>        #
>        #  Which FreeRADIUS driver to use.
>        #
>        driver = "rlm_sql_${database}"
> 
>        # Connection info:
>        server = "localhost"
> .....................
> }
> ----------------------------------------------------------------
> 
> 
> Where should I declare the connection to sqlite file?

With the 'filename' config item, and you need to set database to 'sqlite'

sql {
	database = 'sqlite'

	filename = '<path to sqlite file>'
}

It's done properly in 3.0. It's sort of hacked into 2.x.x.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team



More information about the Freeradius-Users mailing list