Anyone want complex conditions in radiusd.conf?

Frank Cusack fcusack at fcusack.com
Tue May 22 04:57:55 CEST 2007


On May 22, 2007 1:52:59 AM +0000 Chris Mikkelson <cmikk at qwest.net> wrote:
> On Mon, May 21, 2007 at 04:14:18PM +0200, Alan Dekok wrote:
>>  authorize {
>> 	...
>>
>> 	if (("%{User-Name}" == "bob") || (5 > 3)) {
>> 		sql
>> 		detail
>> 		...
>> 	}
>>
>>  }
>>
>>   Sound useful? :)
>
> Yes, very.  It's very clean compared to the alternative
> of setting Autz-Type, etc. in a users file (our
> config uses that approach heavily, and it's somewhat
> ugly; this info really *should* be in the .conf
> file...).

The advantage of the users file is that you don't need to restart
the server to make changes.

-frank



More information about the Freeradius-Devel mailing list