From: Alan T. DeKok Date: Mon, 24 May 2021 13:28:12 +0000 (-0400) Subject: minor tweaks for Class generation X-Git-Tag: release_3_0_23~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc18292a18c2286e4bccae12348cedf57146303a;p=thirdparty%2Ffreeradius-server.git minor tweaks for Class generation --- diff --git a/raddb/policy.d/accounting b/raddb/policy.d/accounting index 6a0b6fa0352..8e4c38a1c4d 100644 --- a/raddb/policy.d/accounting +++ b/raddb/policy.d/accounting @@ -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} }" } }