Does Pam_Radius support Acct-Interim-Interval?

Alan DeKok aland at deployingradius.com
Tue Aug 4 14:05:23 CEST 2020


On Aug 4, 2020, at 6:30 AM, Mark Antony via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> I have a question about Pam_Radius plugin and Freeradius. Does it only support authentication?

  It supports accounting, but it's not well documented or tested.

> I'm asking because while authentication seem to work, Acct-Interim-Interval seem to be completely ignored.

  Yes.  The module sends RADIUS packets when the PAM framework calls it.  The module does NOT start up any new process or thread to periodically send packets.

  The PAM framework can call the module on open session, and close session.  That's it.  There is no "session still open" capability in PAM.

  If you want full-featured accounting on the users activity, interim updates, etc., then you will have to use something else.  Both PAM and the standard Unix APIs don't support that.

> post-auth {
> update reply {
> Acct-Interim-Interval = 10
> }
> }
> 
> For testing purposes I have set it to 10 seconds and I was expecting it to fire update-requests every 10 seconds, but this isn't happening.

  No RADIUS NAS on the planet will send accounting packets every 10 seconds.  RFC 2866 suggests a 5 minute minimum on Acct-Interim-Interval.  Most NASes enforce that.

  Alan DeKok.




More information about the Freeradius-Users mailing list