Opened 6 weeks ago

Last modified 6 days ago

#5530 accepted enhancement

Radius accounting

Reported by: tomek Owned by: fdupont
Priority: medium Milestone: Kea1.4
Component: hook-radius Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: Premium Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no


The RadiusDesign requires accounting to be supported.

Note that it does require some of the information being available only during initial client's DORA process. This information will be stored in host reservation using user context, which will be necessary during accounting communication.

Also, since the communication is unidirectional (there's no expectation for Kea to get anything back from accounting), this should be implemented in separate thread.


Change History (4)

comment:1 Changed 12 days ago by fdupont

  • Owner set to fdupont
  • Status changed from new to accepted

comment:2 Changed 12 days ago by fdupont


  • reuse the legal log code for start and update code.
  • for stop case hooks are expire, release and decline. Should add a Acct-Terminate-Cause (IMHO no because available causes do not match)
  • problem with Acct-Session-Id: lease is identified by the address (primary key in databases), suggest address + creation date.
  • need to catch some state per lease
  • csv file to provide stable storage.
  • format for hwaddr (canonical: separator '-' lower case, text: toText(false))
  • consider relay address in a second time (can be done only from the query as not stored with the lease).

comment:3 Changed 11 days ago by fdupont

Rebased to the last master to use the new dhcp4_srv_configured callout what I cut&pasted to dhcp6_srv_configured. So new the branch is trac5530a.

comment:4 Changed 6 days ago by fdupont

Code can be greatly simplified if leases can take extra information, a feature which seems to be scheduled for 1.5, doesn't?

Note: See TracTickets for help on using tickets.