]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
minor tweaks for Class generation
authorAlan T. DeKok <aland@freeradius.org>
Mon, 24 May 2021 13:28:12 +0000 (09:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 24 May 2021 13:28:12 +0000 (09:28 -0400)
raddb/policy.d/accounting

index 6a0b6fa0352b8589514041632643ea856f3283ad..8e4c38a1c4d7f65a1f3d9dc9f3673d3d6e759030 100644 (file)
@@ -1,6 +1,6 @@
-# We check for this prefix to determine whether the class
-# value was generated by this server.  It should be changed
-# so that it is globally unique.
+#  We check for this prefix to determine whether the class value was
+#  generated by this server.  It should be changed so that it is
+#  globally unique.
 class_value_prefix = 'ai:'
 
 #
@@ -61,7 +61,7 @@ acct_unique {
 #
 insert_acct_class {
        update reply {
-               &Class = "${policy.class_value_prefix}%{md5:%t,%I,%{Packet-Src-Port},%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}},%{NAS-IP-Address},%{Calling-Station-ID},%{User-Name}}"
+               &Class = "${policy.class_value_prefix}%{md5:%t,%I,%{Packet-Src-Port},%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}},%{NAS-IP-Address},%{Calling-Station-ID},%{User-Name},%{session-state:User-Name} }"
        }
 }