]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix acct_unique policy (#4278) (#4280)
authorJorge Pereira <jpereira@users.noreply.github.com>
Thu, 21 Oct 2021 14:17:48 +0000 (11:17 -0300)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 14:17:48 +0000 (10:17 -0400)
As the 'acct_unique' is setting the request:Tmp-String-9,
then we should unset it!

raddb/policy.d/accounting

index ba4ad2e6b572ce5b7b74be8f0df50ede6e4367e3..38789616a99eba6be917084909f5ebc672fd090d 100644 (file)
@@ -68,6 +68,10 @@ acct_unique {
                        &Acct-Unique-Session-Id := "%{hex:%{md5:%{string:%{User-Name},%{Acct-Multi-Session-ID},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}}}"
                 }
        }
+
+       update request {
+               &Tmp-String-9 !* ANY
+       }
 }
 
 #