Removing an attribute from reply message!

Alexander Clouter alex at digriz.org.uk
Wed Jan 20 18:23:08 CET 2010


Hamid Reza Hasani <hr.hasani at gmail.com> wrote:
>
> [snipped]
>
> I add this lines at the end of authorize section:
> if("%{reply.Session-Octets-Limit}"  >= 20000) {
>     update reply {
>         Session-Octets-Limit [I don't know what!....and am too lazy 
>				to read the docs or look through the 
>				mailing list archives so asked the 
>				lazyweb instead]
>     }
> }
>
*sigh*

http://freeradius.org/radiusd/man/unlang.html#lbAH

What you are looking for is:
----
Session-Octets-Limit !* ANY
----

Although...this only was fixed in 2.1.8...you will see the workaround 
for eariler version is:
----
Session-Octets-Limit -= "'%{reply:Session-Octets-Limit}"
----

Cheers

-- 
Alexander Clouter
.sigmonster says: Poverty begins at home.




More information about the Freeradius-Users mailing list