Issue redundant block - Freeradius 3.0.16.
Andrea Mucci
andrea.mucci at outlook.com
Thu Sep 27 16:59:11 CEST 2018
Hi All,
I configured a redundant block for two instances of the sql module as described in the radius.conf file.
redundant redundant_sql_default {
sql_primary_default
sql_secondary_default
handled
}
sql_primary_default and sql_secondary_default are two instances of the sql module.
It works if I call it as a module in the authorize stream but does not accept it in an expansion.
update control {
Tmp-String-1 := "%{redundant_sql_default: SELECT VENDOR_ID||'~'||VALUE||'~'||VPDN_VENDOR_CODING_ID FROM NAS a, NAS_TAG b, VPDN_LAC l WHERE A.ID = B.NAS_ID (+) AND B.NAS_TAG_NAME_ID (+) = 1 AND A.ID = L.NAS_ID (+) AND A.IP_ADDR_TXT = '%{NAS-IP-Address}'}"
}
The service start gives this error.
Sep 27 16:17:26 freeradiusmi radiusd[8798]: /etc/raddb/policy.d/windtre-nas-policy[12]: Failed parsing expanded string:
Sep 27 16:17:26 freeradiusmi radiusd[8798]: /etc/raddb/policy.d/windtre-nas-policy[12]: %{redundant_sql_default: SELECT VENDOR_ID||'~'||VALUE||'~'||VPDN_VENDOR_CODING_I
Sep 27 16:17:26 freeradiusmi radiusd[8798]: /etc/raddb/policy.d/windtre-nas-policy[12]: ^ Unknown module
Sep 27 16:17:26 freeradiusmi systemd[1]: radiusd.service: control process exited, code=exited status=1
Sep 27 16:17:26 freeradiusmi systemd[1]: Failed to start FreeRADIUS multi-protocol policy server.
-- Subject: Unit radiusd.service has failed
What am I doing wrong?
Best Regards
Andrea
More information about the Freeradius-Users
mailing list