1 .TH rlm_acct_unique 5 "3 February 2004" "" "FreeRADIUS Module"
3 rlm_acct_unique \- FreeRADIUS Module
5 The \fIrlm_acct_unique\fP module creates a unique accounting session
8 Many NAS vendors have their equipment supply an Acct-Session-Id
9 attribute which is not unique over reboots. This makes accounting
10 difficult, as there will be many independent sessions with the same
11 Acct-Session-Id attribute. This module uses the Acct-Session-Id
12 attribute, along with other attributes in the request, to create a
13 more unique session ID, called Acct-Unique-Session-Id.
15 The main configuration items to be aware of are:
17 A list of the attributes used in calculating an MD5 hash which is used
18 as the value for the unique session id.
26 key = "User-Name, Acct-Session-Id, NAS-IP-Address, NAS-Port"
45 After generating the MD5 hash, the module adds it to the accounting
46 request packet received from the client. It will look something like
47 this in your detail file:
50 Acct-Unique-Session-Id = "c66ef57e480b9d26"
53 NOTE: Any attribute you specify that is not found in the 'dictionary'
54 file will cause the server to fail and exit with an error.
56 NOTE: If you want the Acct-Unique-Session-Id of the Start and the
57 Stop packet of a particular session to match, you must use values for
58 the key that will stay the same for the Start and Stop. The above
59 example is a good start. Adding 'Acct-Session-Time', for example, would
60 cause a mismatch because that value is not the same on the Start and
61 Stop accounting packets.
69 .I /etc/raddb/radiusd.conf
75 Chris Parker, cparker@segv.org