Bill Schoolfield wrote:
> Actually this particular issue was the parenthesis around the number. I
> had added
> them in the expression to make sure the math occurred before the logical
> comparison.
The "man unlang" documentation describes the syntax it expects.
Adding a random paranthesis won't
On 14/06/13 13:29, Bill Schoolfield wrote:
Actually this particular issue was the parenthesis around the number. I
had added
them in the expression to make sure the math occurred before the logical
comparison.
Without them though, unlang's IF seems to evaluate the first expression
(a subtraction
Actually this particular issue was the parenthesis around the number. I had
added
them in the expression to make sure the math occurred before the logical
comparison.
Without them though, unlang's IF seems to evaluate the first expression (a
subtraction)
and ignores things afterwards. So the I
Bill Schoolfield wrote:
> The above code fails with a message (below) that says "(Right field is
> not a number at: (1371158700))". I tried adding
> a zero to force a number interpretation but this does nothing.
That error is produced by the SQL database, not by FreeRADIUS.
My guess is that t
I can't seem to make this work. I'm comparing some values in the post-auth
section:
if("(%{expr: %{check:Max-All-Session}-%{sql:select sum(acctsessiontime) from radacct
where username='%{User-Name}'}})" < "(%{expr: %{sql:select
unix_timestamp(str_to_date('%{check:Expiration}', '%%b %%d
5 matches
Mail list logo