Freeradius2 and sqlite

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sun Sep 1 18:02:32 CEST 2013


On 1 Sep 2013, at 16:19, Nong NgocDung <nongdung at gmail.com> wrote:

> Dear Arran,
> 
> Finally, I could connect freeradius2 to sqlite on OpenWrt, but the config
> item "filename" does not affect:
> sql {
> 	database = 'sqlite'
> 
> 	filename = '<path to sqlite file>'
> }
> 
> It always connects to a sqlite database with the name of
> "sqlite_radius_client_database" under /etc/freeradius2 folder.
> Do you know how to customize this database file? For example, If I want
> connect to myproject.db

https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/src/modules/rlm_sql/rlm_sql.c#L52

By changing the value of filename.  If it's not working you may have a very old version of FreeRADIUS.  You should try upgrading to the latest released version.


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



More information about the Freeradius-Users mailing list