rewrite User-Name in received Access-Request - tough question :)
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Sun Oct 28 11:05:47 CET 2012
On 28 Oct 2012, at 09:30, Alan DeKok <aland at deployingradius.com> wrote:
> Arran Cudbard-Bell wrote:
>>> That is working fine, users can connect to the network, BUT accounting section logges their username in database as original MAC address, not rewritted username freeinternetfor30minutes .
>>
>> You get that Accounting-Requests and Access-Requests are completely unrelated right? They're two different types of packet sent by the NAS, so rewriting you do in the request section has absolutely no effect on the accounting section?
>>
>> That said with most NAS you can request that it change the User-Name associated with the session by sending back a User-name value in the Access-Accept. You'd just do something like:
>>
>> update reply {
>> User-Name := "%{User-Name}"
>> }
>>
>> after you'd done the rewriting, the NAS may or may not honour this, you'll have to test.
>
> That is sometimes a good idea.
>
> Not for him.
It doesn't matter it's Mac-Auth. If he wants to track usage he can just use Calling-Station-ID, though Class would be a better option if his NAS supports it.
-Arran
More information about the Freeradius-Users
mailing list