6 # Write Moonshot-*-TargetedId (MSTID) to the database.
8 # Schema raddb/sql/moonshot-targeted-ids/<DB>/schema.sql
9 # Queries raddb/sql/moonshot-targeted-ids/<DB>/queries.conf
11 sql moonshot_tid_sql {
13 # The dialect of SQL you want to use, this should usually match
16 # If you're using rlm_sql_null, then it should be the type of
17 # database the logged queries are going to be executed against.
20 # The sub-module to use to execute queries. This should match
21 # the database you're attempting to connect to.
23 # There are MSTID queries available for:
25 # * rlm_sql_postgresql
27 # * rlm_sql_null (log queries to disk)
29 driver = "rlm_sql_${dialect}"
32 filename = ${radacctdir}/moonshot-targeted-ids.sqlite
33 bootstrap = ${modconfdir}/${..:name}/moonshot-targeted-ids/sqlite/schema.sql
36 # Write MSTID queries to a logfile. Useful for debugging.
37 # logfile = ${logdir}/moonshot-targeted-id-log.sql
49 # If you adjust the table name here, you must also modify the table name in
50 # the moonshot_get_targeted_id.post-auth policy in policy.d/moonshot-targeted-ids
51 # and the schema.sql files in the mods-config/sql/moonshot-targeted-ids tree.
53 moonshot_tid_table = "moonshot_targeted_ids"
54 sql_user_name = "%{User-Name}"
56 $INCLUDE ${modconfdir}/${.:name}/moonshot-targeted-ids/${dialect}/queries.conf