Delete one value of multiple attribute(Class)

Alan DeKok aland at deployingradius.com
Wed Jul 17 10:19:20 CEST 2013


Okis Chuang wrote:
> Actually I can write a short perl script to do this, but I try to do
> with pure unlang.

  Unlang is not really intended to do that.

> In fact, the reason why I need this function is that sometimes we treat
> some attributes as temporary variable for generating another attribute
> value pair.

  Use Tmp-String-0, or Tmp-Octets-0 instead.  That way the problem goes
away.  See "dictionary.freeradius.internal" for more examples.

> Then erase it before sending request or reply out. So I am wondering
> would majority of FR user do this things like this?

  And you don't need to erase the Tmp-* attributes before sending a
packet.  They will *never* show up in a packet.

  Alan DeKok.


More information about the Freeradius-Users mailing list