operators clarification

Alan DeKok aland at deployingradius.com
Sat May 5 08:10:46 CEST 2007


Andrew Long wrote:
> I have looked at the wiki and read the docs... never-the-less...
> I inherited a 0.9 freeradius/mysql/chap setup which I have updated to 1.4.

  1.1.6?

> Currently I am sending radreply like
> 
> | 358 | indigoAmh-AP05   | Colubris-AVPair | += |
 ...
> Now this works, but I have read that the op ':=' would be more correct

  No.  If you're sending 3 different values for one attribute, you need
"+=".  That's what the documentation tries to say.

> and this is what Colubris suggests in their
> examples. What I don't understand is.. my reading of the wiki leads me to believe that := would replace
> existing attributes of the same name (Colubris-AVPair) with the current one, rather than appending them, as we want.

  So... use "+=".

> Can someone explain where my reading of the docs is wrong.
> 
> ---QUOTE
>  ':=' 
...

  Why not read the documentation for "+=" ?

  Alan DeKok.
--
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog



More information about the Freeradius-Users mailing list