LUA Redis Integration
Alan DeKok
aland at deployingradius.com
Wed Nov 20 11:47:15 UTC 2024
> On Nov 20, 2024, at 1:00 AM, Gabriel Marais <gabriel.j.marais at gmail.com> wrote:
> I was wondering if anyone has successfully integrated LUA with Redis
> in freeRADIUS.
> I am trying to build in a LUA function in
> /etc/freeradius/mods-enabled/redis
The documentation doesn't say that the redis module supports in-line lug.
> that calls for a result from a
> redis db but I get a syntax error in my LUA {} code :-
> /etc/freeradius/mods-enabled/redis[108]: Expecting section start brace
> '{' after "local imei"
>
> This is my code block:-
>
> lua {
Yeah, you can't just invent syntax and have it do what you want.
The lua scripts have to be on the redis server before FreeRADIUS can use them. Then, just use normal Redis queries from FreeRADIUS to run the scripts.
Alan DeKok.
More information about the Freeradius-Users
mailing list