Freeradius 3.0.14 - Enable SQLite

Matthew Newton matthew at newtoncomputing.co.uk
Thu Jun 8 15:27:34 CEST 2017


On Thu, Jun 08, 2017 at 03:06:59PM +0200, Stabla, Daniel wrote:
> /etc/radiusd-acct/mods-enabled/sql[26]: Failed to link to module
> 'rlm_sqlite': /usr/local/lib64/rlm_sqlite.so: cannot open shared object
> file: No such file or directory /usr/local/lib/rlm_sqlite.so: cannot open
> shared object file: No such file or directory

OK, you've moved things around in the mods-enabled/sql file and
broken it.

> Content of mods-enabled/sql:
...
> #  Driver specific options are:
> #
>   sqlite {

This section...

>         # Path to the sqlite database
>         filename = "/tmp/database.db"
> 
>         # If the file above does not exist and bootstrap is set
>         # a new database file will be created, and the SQL statements
>         # contained within the file will be executed.
>         bootstrap = "/etc/radiusd-acct/sql/main/sqlite/schema.sql"
>   }
> #
> #  mysql {
> #       # If any of the below files are set tls encryption is enabled
> #       tls {
> #               ca_file = "/etc/ssl/certs/my_ca.crt"
> #               ca_path = "/etc/ssl/certs/"
> #               certificate_file = "/etc/ssl/certs/private/client.crt"
> #               private_key_file = "/etc/ssl/certs/private/client.key"
> #               cipher = "DHE-RSA-AES256-SHA:AES128-SHA"
> #       }
> #  }
> 
> sql {

... should be inside this section.

Don't move the sqlite and mysql subsections outside of sql{}. See
the default config.

-- 
Matthew



More information about the Freeradius-Users mailing list