Username Rewrites based on Hint / Realm

Stephen Bowman sbbowman at gmail.com
Thu Oct 16 00:43:19 CEST 2008


2008/10/15 Javier Fox <jfox at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20081015/2a12aec0/attachment.html>


More information about the Freeradius-Users mailing list