Updating the n'th occurance of an attribute

2013-05-31 Thread Бен Томпсон
Hello everyone

I have a quick queston. I noticed in the man page of unlang that we can
reference attributes using the syntax:

%{Attribute-Name[index]}

This is a very useful feature :-)

However, I just wanted to check whether we can update attributes in the
same way? I mean something like this:

update reply {
Attribute-Name[index] := new_value
}

Thanks

Ben
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Updating the n'th occurance of an attribute

2013-05-31 Thread Arran Cudbard-Bell

On 31 May 2013, at 03:23, Бен Томпсон b.thomp...@latera.ru wrote:

 Hello everyone
 
 I have a quick queston. I noticed in the man page of unlang that we can 
 reference attributes using the syntax:
 
 %{Attribute-Name[index]}
 
 This is a very useful feature :-)
 
 However, I just wanted to check whether we can update attributes in the same 
 way? I mean something like this:
 
 update reply {
 Attribute-Name[index] := new_value
 }

It's planned for a future version as part of the nested attribute syntax.

Arran Cudbard-Bell a.cudba...@freeradius.org
FreeRADIUS Development Team

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Updating the n'th occurance of an attribute

2013-05-31 Thread Alan DeKok
Бен Томпсон wrote:
 However, I just wanted to check whether we can update attributes in the
 same way? I mean something like this:
 
 update reply {
 Attribute-Name[index] := new_value
 }

  It may be possible to add for v3.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html