Multiple fieldnames in SQL query, was: Perl vs. python vs. Lua?

Dom Latter freeradius-users at latter.org
Thu Apr 12 17:56:24 CEST 2018



On 12/04/18 16:45, Alan DeKok wrote:
> On Apr 12, 2018, at 11:29 AM, Dom Latter <freeradius-users at latter.org> wrote:
>> Does the pseudo-code look sensible then?  I am very much a noob with
>> regards to unlang.
> 
>    It looks fine.
> 
>    Unlang is a simple language.  A bit weird, but simple.

<grin>

Ah - another quick question.  Is there something available similar to
'%{request:User-Name} which will give me the current date?

(Reason - some wifi accounts have an expiry date so we need to check
that.  Use of time functions in sql stops the query cache being used,
so it's better to have '2018-04-12' in the query than curdate().)


More information about the Freeradius-Users mailing list