Clean up loopback / inaddr_any checks
[freeradius.git] / raddb / acct_users
index 458c53d..fafac84 100644 (file)
@@ -1,13 +1,23 @@
 #
 #      $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:
+#      This is like the 'users' file, but it is processed only for
+#      accounting packets.
+#
 
-#DEFAULT NAS-IP-Address == 10.0.0.1, Replicate-To-Realm := "realmname"
+#  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.
+#
+#DEFAULT Realm == "foo.net", Acct-Type := sql_log.foo
+#
+#DEFAULT Huntgroup-Name == "wifi", Acct-Type := sql_log.wifi
+#
+#DEFAULT Client-IP-Address == 10.0.0.1, Acct-Type := sql_log.other
+#
+#DEFAULT Acct-Status-Type == Start, Acct-Type := sql_log.start
 
-# where 10.0.0.1 is the NAS in question and "replicateme" 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.
+#  Replace the User-Name with the Stripped-User-Name, if it exists.
+#
+#DEFAULT
+#      User-Name := "%{Stripped-User-Name:-%{User-Name}}"