[EXT] Integration GO language into Freeradius
Matthew Newton
mcn at freeradius.org
Mon Mar 21 22:22:31 UTC 2022
On 21/03/2022 21:49, Arran Cudbard-Bell wrote:
>> On Mar 21, 2022, at 1:09 PM, Martin Gignac <martin.gignac at gmail.com> wrote:
>>> As I can see there is no possibility to process/manipulate the whole
>>> REQUEST ( in case the rlm_perl module is RLM_REQUEST ) attributes ( because
>>> the module sends only a limited attribute set via uri ).
> Note sure what the issue here is with Go... You can already write FreeRADIUS modules in Go
> you just export the same symbols as one of the C modules.
This sounds to me like another case of "just learn how to use unlang".
In over a decade of building FreeRADIUS configs I have never used any of
the scripting language modules. Unlang might not always be the
prettiest, but it does work, and is pretty much going to be the fastest
option.
There may be a few unusual cases where something more flexible could
possibly be justified (and unlang does fall slightly short in a few
areas, occasionally requiring some "creative" config), but I've never
found it hard enough to need to use something else.
There's been too many cases where people have written configs in python
or perl because that's what they're used to... and the result has been
much simpler and faster once that's all ripped out and it's recreated in
unlang. I really don't see adding yet another language much of a help.
--
Matthew
More information about the Freeradius-Users
mailing list