Updates to "unlang"

Alan DeKok aland at deployingradius.com
Tue Dec 15 22:20:27 CET 2015

On Dec 11, 2015, at 9:47 AM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
> On 11/12/15 14:33, Arran Cudbard-Bell wrote:
>> People abuse policies now, using Tmp attributes as arguments and to
>> hold return values has a far greater potential for confusion.
> Yep. I use Tmp-* attributes a lot in policies. I don't consider it abuse really; it's what we've got.

  Yeah... simpler would be better.  But I'm wary of extending things *too* much.

>> By refusing to add proper functions, we're increasing real world
>> abuse and confusion.
> I understand the reasoning behind unlang being limited. Implementing yet-another fullblown language is not a great way to spend resources.
> I would probably make more use of the embedded languages for complex policies, but none of the options suit me; perl is, well, perl. Python although I love it, is a very poor choice for use in threaded environments.
> Unlang is "good enough" but is sometimes messy. A few tweaks to avoid some of the more onerous set/unset of Tmp/control: variables would probably obviate any desire to move outside the server core for me

  I agree.

  I'll see if I can come up with something sane.  And easy to implement.

  Alan DeKok.

More information about the Freeradius-Devel mailing list