#
# $Id$
#
-# This file, with the same syntax as "users", can be used to modify the
-# handling of accounting packets. For example, to ensure that a second
-# RADIUS server gets a copy of all accounting packets from a certain NAS:
-
-#DEFAULT NAS-IP-Address == 10.0.0.1, Replicate-To-Realm := "realmname"
-
-# where 10.0.0.1 is the NAS in question and "realmname" is defined in the
-# realms file to point to the second RADIUS server. If you don't want
-# "username@realmname" to be accepted and replicated to the other server,
-# label that realm with the "notsuffix" option in the realms file.
+# This is like the 'users' file, but it is processed only for
+# accounting packets.
+#
+# Select between different accounting methods based for example on the
+# Realm, the Huntgroup-Name or any combinaison of the attribute/value
+# pairs contained in an accounting packet.
#
-# You can also try:
+#DEFAULT Realm == "foo.net", Acct-Type := sql_log.foo
#
-#DEFAULT Acct-Status-Type == Start
-# Exec-Program = "/path/to/exec/acct/start"
+#DEFAULT Huntgroup-Name == "wifi", Acct-Type := sql_log.wifi
#
-#DEFAULT Acct-Status-Type == Stop
-# Exec-Program = "/path/to/exec/acct/stop"
+#DEFAULT Client-IP-Address == 10.0.0.1, Acct-Type := sql_log.other
#
-# For information on how the attributes from the request are passed
-# to the program, see 'doc/variables.txt'
+#DEFAULT Acct-Status-Type == Start, Acct-Type := sql_log.start
+
+# Replace the User-Name with the Stripped-User-Name, if it exists.
#
-#
\ No newline at end of file
+#DEFAULT
+# User-Name := "%{Stripped-User-Name:-%{User-Name}}"