Freeradius 3, Posgresql 14, application_name
Hi, there is a configuration option in /etc/freeradius/3.0/mods-available/sql sql { postgresql { send_application_name = yes } } which makes Freeradius use "application_name" parameter to connect to Postgresql. is there any way to change the value Freeradius uses to fill this parameter? the default value in the logs "application_name='FreeRADIUS 3.0.20 - radiusd (sql)" which is not useful for me as i'm going to have several Freeradius servers connected to the same external Postgresql DB. log rlm_sql_postgresql: Connecting using parameters: dbname='radius' host='postgresql1' port=5432 user='freeradius' password='freeradius' application_name='FreeRADIUS 3.0.20 - radiusd (sql)' -- Andrey Grigorian
On Aug 22, 2022, at 3:47 PM, Andrey Grigorian <andrey.grigorian@gmail.com> wrote:
there is a configuration option in /etc/freeradius/3.0/mods-available/sql
sql { postgresql { send_application_name = yes } }
which makes Freeradius use "application_name" parameter to connect to Postgresql.
is there any way to change the value Freeradius uses to fill this parameter?
No. That could be added easily, I think. See src/modules/rlm_sql/drivers/rlm_sq_postgresql.c
the default value in the logs "application_name='FreeRADIUS 3.0.20 - radiusd (sql)" which is not useful for me as i'm going to have several Freeradius servers connected to the same external Postgresql DB.
OK. Alan DeKok.
participants (2)
-
Alan DeKok -
Andrey Grigorian