Yes i was editing the right file but i've found strange characters in the file. I did some cleaning. Now, the update coa is sending every attributes correctly. It seems that i only have the expand ok in the section where i did configure the "update coa" (not ok in pre-proxy), see below : <br>
<br>rad_recv: Access-Request packet from host 127.0.0.1 port 45089, id=44, length=88<br> User-Name = "rija"<br> User-Password = "casper34"<br> NAS-IP-Address = 172.20.13.41<br> NAS-Port = 0<br>
Framed-IP-Address = 192.168.1.5<br> Acct-Session-Id = "539848"<br> Message-Authenticator = 0x56316e653df7c0dee4ca4d51eb9605fb<br>[chocoldap] looking for reply items in directory...<br> [chocoldap] AlcSLAProfStr -> Alc-SLA-Prof-Str = "sla-profile1"<br>
[chocoldap] AlcSubscProfStr -> Alc-Subsc-Prof-Str = "sub-profile1"<br>[chocoldap] user rija authorized to use remote access<br> [chocoldap] ldap_release_conn: Release Id: 0<br>++[chocoldap] returns ok<br>++[chap] returns noop<br>
[pap] Config already contains "known good" password. Ignoring Password-With-Header<br>++[pap] returns updated<br>++[expiration] returns noop<br>++[logintime] returns noop<br> expand: %{User-Name} -> rija<br>
expand: %{Acct-Session-Id} -> 539848<br> expand: %{NAS-IP-Address} -> 172.20.13.41<br> expand: %{Framed-IP-Address} -> 192.168.1.5<br> expand: %{reply:Alc-Subsc-Prof-Str} -> sub-profile1<br>
expand: %{reply:Alc-SLA-Prof-Str} -> sla-profile1<br>++[coa] returns noop<br>Found Auth-Type = PAP<br># Executing group from file /etc/freeradius/sites-enabled/wol<br>+- entering group PAP {...}<br>[pap] login attempt with password "casper34"<br>
[pap] Using clear text password "casper34"<br>[pap] User authenticated successfully<br>++[pap] returns ok<br># Executing section post-auth from file /etc/freeradius/sites-enabled/wol<br>+- entering group post-auth {...}<br>
++[chocoldap] returns noop<br>Sending Access-Accept of id 44 to 127.0.0.1 port 45089<br> Alc-SLA-Prof-Str = "sla-profile1"<br> Alc-Subsc-Prof-Str = "sub-profile1"<br># Executing section pre-proxy from file /etc/freeradius/sites-enabled/wol<br>
+- entering group pre-proxy {...}<br> expand: %{User-Name} -> rija<br> expand: %{Acct-Session-Id} -> 539848<br> expand: %{NAS-IP-Address} -> 172.20.13.41<br> expand: %{Framed-IP-Address} -> 192.168.1.5<br>
expand: %{Alc-Subsc-Prof-Str} -> <br> expand: %{Alc-SLA-Prof-Str} -> <br>++[coa] returns noop<br>Sending CoA-Request of id 97 to 80.236.127.146 port 3799<br> User-Name = "rija"<br> Acct-Session-Id = "539848"<br>
NAS-IP-Address = 172.20.13.41<br> Framed-IP-Address = 192.168.1.5<br> Alc-Subsc-Prof-Str = "sub-profile1"<br> Alc-SLA-Prof-Str = "sla-profile1"<br>Finished request 1.<br><br>
Thanks for your help<br><br>
<br><br><br><br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 7:06 PM, Phil Mayers <span dir="ltr"><<a href="mailto:p.mayers@imperial.ac.uk" target="_blank">p.mayers@imperial.ac.uk</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">On 29/08/12 17:53, Chocoflex Mamba wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
</blockquote>
<br></div><div class="im">
Ok, you say you have reply:Var but the debug says:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
</blockquote>
<br></div>
Note: no "reply:".<br>
<br>
Are you editing the right file? Have you restarted the server?<div class="HOEnZb"><div class="h5"><br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/<u></u>list/users.html</a><br>
</div></div></blockquote></div><br>