PostgreSQL accounting callingstationid field blank
aland at deployingradius.com
Fri Jul 25 14:17:18 CEST 2014
Stoycho Ganev wrote:
> Everything works fine except that when accounting records are INSERTed
> in the radacct table, the callingstationid field is left blank instead
> of being populated with the MAC address of the calling station. This is
> rather strange, because the Calling-Station-Id is present in the
> Access-Request, and is the correct format (no wimax rubbish).
The point of the debug output is to READ IT. Honestly...
You're seeing a Calling-Station-Id in an Access-Request. That's nice.
But you're not seeing the Calling-Station-Id in an Accounting-Request.
And then blaming FreeRADIUS when the SQL insert doesn't contain the
Well... it doesn't exist in the accounting request. If you want it in
the accounting request, go fix the NAS. The NAS is the one sending the
packet. It's not sending Calling-Station-Id in the accounting packet.
Or, update the "post-auth" configuration to write the
Calling-Station-Id to the accounting tables. From the debug log, all
packets contain an Acct-Session-Id and Acct-Multi-Session-Id. So you
can use those to track a unique session.
More information about the Freeradius-Users