control flow in FreeRADIUS authorize section

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Oct 3 01:07:54 CEST 2013


On 2 Oct 2013, at 22:57, A.L.M.Buxey at lboro.ac.uk wrote:

> Hi,
> 
>>  A simple thing:
>> 
>> 
>> 	<infected case>
>> 	update control {
>> 		Tmp-String-0 := "stop"
>> 	}
>> 	...
>> 
>> 
>> 
>> 
>> 	if (Tmp-String-0 != "stop") {
>>         	<BUNCH OF UNLANG CODE>
>> 	}
>> 
>>  That should work.  Ugly, but functional.
> 
> this is pretty much what I was going to suggest. ugly, yes. but sometimes simple is best.
> and its much easier for a non unlang'y person to understand the logic! :)

Nah, the appearance of obscurity is another mans job security :p

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team



More information about the Freeradius-Users mailing list