Re: Delete one value of multiple attribute(Class)
Is there anyone can help? Actually I can write a short perl script to do this, but I try to do with pure unlang. So.if someone can told me whether this purpose can be done with only unlang, I can save lots of time on this endless trial. Lol 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. Then erase it before sending request or reply out. So I am wondering would majority of FR user do this things like this? I personally pretty love this way for some policy processing, and that how FreeRADIUS to be powerful and flexible I think. So I believe there might be somebody else probably need this. Alright.just free chat. Cheers, Okis.
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.
participants (2)
-
Alan DeKok -
Okis Chuang