On 28 Oct 2012, at 09:30, Alan DeKok <[email protected]> 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
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html