variable expansion in update coa
    Alan DeKok 
    aland at deployingradius.com
       
    Wed Aug 29 18:26:31 CEST 2012
    
    
  
Chocoflex Mamba wrote:
> It's not a typo, it's just the format in unlang documentation:
>
>                 "Attribute lists may be referenced via the following syntax
> 
>         "  %{<list>:Attribute-Name}
  Don't be ridiculous.  There's no attribute named "Attribute-Name".
Some amount of independent thought is required.
> This is what i have in my update coa :
> 
> update coa {
...
>               Alc-Subsc-Prof-Str = "%{reply:Alc-Subsc-Prof-Str}"
>               Alc-SLA-Prof-Str   = "%{reply:Alc-SLA-Prof-Str}"
>        }
> 
> and this is the result with debug  :
...
>         Alc-Subsc-Prof-Str = ""
>         Alc-SLA-Prof-Str = ""
  If you read the REST of the debug log, you'll see the it printing out
the expansion.
  hint: if reply:Alc-Subsc-Prof-Str doesn't exist, the expansion results
in an empty string.
  Alan DeKok.
    
    
More information about the Freeradius-Users
mailing list