2008/10/15 Javier Fox <jfox@corp.spiritone.com>
I've tried every permutation of the 'if' line I can think of - quotes, no quotes, single-equal, double-equal, equal-tilde - but FreeRadius still doesn't like that 'if' line, and errors out with "Line is not in 'attribute = value' format" on startup.

Again, I apologize if I'm missing something blatantly obvious here, but I seem to be following the exact same format as every example on the Internet; it just doesn't like it.  Do I need to add some special config line so it knows to watch for (and interpret) the unlang statements?  I had initially tried using a switch{} block and it complained that it didn't know what 'switch' meant.


Thanks,
J. Fox


tnt@kalik.net wrote:
if(whatever) {
    update request {
          User-Name := ...

Ivan Kalik
Kalik Informatika ISP

Umm, oops, forgot to ask and just noticed you didn't say in your initial message.  What version of FR are you using (radiusd -v)?

If you aren't in 2.x, get there.  Preferably 2.1.1.