blob: 552b27458b350a45d0bb005764c337253d645d5c [file] [log] [blame]
Chetan Gaonker7f4bf742016-05-04 15:56:08 -07001#
2# $Id: 322d33a01f26e3990ba19954b7847e6993ae389b $
3#
4# This is like the 'users' file, but it is processed only for
5# accounting packets.
6#
7
8# Select between different accounting methods based for example on the
9# Realm, the Huntgroup-Name or any combinaison of the attribute/value
10# pairs contained in an accounting packet.
11#
12#DEFAULT Realm == "foo.net", Acct-Type := sql_log.foo
13#
14#DEFAULT Huntgroup-Name == "wifi", Acct-Type := sql_log.wifi
15#
16#DEFAULT Client-IP-Address == 10.0.0.1, Acct-Type := sql_log.other
17#
18#DEFAULT Acct-Status-Type == Start, Acct-Type := sql_log.start
19
20# Replace the User-Name with the Stripped-User-Name, if it exists.
21#
22#DEFAULT
23# User-Name := "%{%{Stripped-User-Name}:-%{User-Name}}"