I dit not write "%{<list>:Attribute-Name}" in my conf file. What i've understood from the document is that i can write for example :<br><br> %{request:User-Name} <br> %{reply:Alc-Subsc-Prof-Str} => i have this information in the reply(see below)<br>
<br>And like i said in my previous post, that's what i wrote in my conf file. Below my update coa section :<br><br>update coa {<br> User-Name = "%{User-Name}"<br> Acct-Session-Id = "%{Acct-Session-Id}"<br>
NAS-IP-Address = "%{NAS-IP-Address}"<br> Framed-IP-Address = "%{Framed-IP-Address}"<br> Alc-Subsc-Prof-Str = "%{reply:Alc-Subsc-Prof-Str}"<br> Alc-SLA-Prof-Str = "%{reply:Alc-SLA-Prof-Str}"<br>
}<br><br>In the debug you can see the access-accept with the right value for 2 the attributes :<br><br>Wed Aug 29 18:51:21 2012 : Info: ++[chocoldap] returns noop<br>Sending Access-Accept of id 193 to 127.0.0.1 port 42032<br>
Alc-SLA-Prof-Str = "sla-profile2"<br> Alc-Subsc-Prof-Str = "sub-profile1"<br>Wed Aug 29 18:51:21 2012 : Info: # Executing section pre-proxy from file /etc/freeradius/sites-enabled/wol<br>
Wed Aug 29 18:51:21 2012 : Info: +- entering group pre-proxy {...}<br>Wed Aug 29 18:51:21 2012 : Info: expand: %{User-Name} -> chocouser<br>Wed Aug 29 18:51:21 2012 : Info: expand: %{Acct-Session-Id} -> 539848<br>
Wed Aug 29 18:51:21 2012 : Info: expand: %{NAS-IP-Address} -> 172.20.13.27<br>Wed Aug 29 18:51:21 2012 : Info: expand: %{Framed-IP-Address} -> 192.168.1.5<br>Wed Aug 29 18:51:21 2012 : Info: expand: %{Alc-Subsc-Prof-Str} -> <br>
Wed Aug 29 18:51:21 2012 : Info: expand: %{Alc-SLA-Prof-Str} -> <br><br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 6:26 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Chocoflex Mamba wrote:<br>
> It's not a typo, it's just the format in unlang documentation:<br>
><br>
> "Attribute lists may be referenced via the following syntax<br>
><br>
> " %{<list>:Attribute-Name}<br>
<br>
</div> Don't be ridiculous. There's no attribute named "Attribute-Name".<br>
Some amount of independent thought is required.<br>
<div class="im"><br>
> This is what i have in my update coa :<br>
><br>
> update coa {<br>
</div>...<br>
<div class="im">> Alc-Subsc-Prof-Str = "%{reply:Alc-Subsc-Prof-Str}"<br>
> Alc-SLA-Prof-Str = "%{reply:Alc-SLA-Prof-Str}"<br>
> }<br>
><br>
> and this is the result with debug :<br>
</div>...<br>
> Alc-Subsc-Prof-Str = ""<br>
> Alc-SLA-Prof-Str = ""<br>
<br>
If you read the REST of the debug log, you'll see the it printing out<br>
the expansion.<br>
<br>
hint: if reply:Alc-Subsc-Prof-Str doesn't exist, the expansion results<br>
in an empty string.<br>
<span class="HOEnZb"><font color="#888888"><br>
Alan DeKok.<br>
</font></span><div class="HOEnZb"><div class="h5">-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br>