Username Rewrites based on Hint / Realm
tnt at kalik.net
tnt at kalik.net
Thu Oct 16 00:47:12 CEST 2008
>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.
>
if ( Called-Station-ID =~ /4262606/ ) {
update request {
User-Name := "%{User-Name}@myispname.com" # <== not Stripped
}
}
That should work.
Ivan Kalik
Kalik Informatika ISP
More information about the Freeradius-Users
mailing list