15 Jul
2019
15 Jul
'19
9:46 a.m.
Thanks that solved the problem.
On 15 Jul 2019, at 15:13, Matthew Newton <mcn@freeradius.org> wrote:
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
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html