disappearing configuration items in unlang
Alan DeKok
aland at deployingradius.com
Wed Jul 4 07:33:20 CEST 2007
Hugh Messenger wrote:
> I'm using the latest and greatest 2.0.0 HEAD.
>
> If I wrap an 'if' statement round something (in this case a query in
> mysql_dialup.conf), any config items seem to get blown away.
You can't. "if" is a processing directive that is valid only when
packets are being processed. The configuration items are parsed once
when the server starts, and don't change after that.
> So for instance:
It would be very nice to be able to do that, but it would also be very
difficult to implement. The solution is to add a layer of indirection:
authorize_reply_query = "%{control:Tmp-String-0}"
Then, while processing the request, set:
update control {
Tmp-String-0 = "..."
}
That *should* work, I think.
Alan DeKok.
More information about the Freeradius-Users
mailing list