unlang conditionals
Phil Mayers
p.mayers at imperial.ac.uk
Mon May 16 17:51:12 CEST 2011
On 16/05/11 15:37, doqb at hotmail.com wrote:
> Hello... This is probably a very silly issue. I have the following on my
> default file:
>
> update control {
> Tmp-String-0 = "%{sql:select a from paq where
> CallingStationId='%{Calling-Station-Id}'"
> Tmp-String-5 = "%{sql:select b from paq where
> CallingStationId='%{Calling-Station-Id}'"
> }
> if (control:Tmp-String-0> control:Tmp-String-5) { .... }
>
> On the radius logs I see the following:
>
> expand: %{sql:select a from paq where
> CallingStationId='%{Calling-Station-Id}'} -> 693492
> expand: %{sql:select b from paq where
> CallingStationId='%{Calling-Station-Id}'}' -> 174080
> ++[control] returns ok
Maybe you want Tmp-Integer-X?
More information about the Freeradius-Users
mailing list