15 Jul
2019
15 Jul
'19
8:13 a.m.
On Mon, 2019-07-15 at 14:54 +0300, liran kessel wrote:
if ("%{sql:SELECT coalesce(1,0) FROM [TABLE_NAME] WHERE ne_id='%{Calling-Station-Id}'}" == 1) { sql }
That's not correct unlang syntax.
However when running radiusd it fails with this error
# Loading preacct {...} # Loading accounting {...} /etc/raddb/sites-enabled/default[642]: Failed to find "{" as a module or policy.
Put the '{' on the same line as the 'if'. -- Matthew