variable expansion in update coa
Chocoflex Mamba
burvinch at gmail.com
Wed Aug 29 19:59:09 CEST 2012
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 :
rad_recv: Access-Request packet from host 127.0.0.1 port 45089, id=44,
length=88
User-Name = "rija"
User-Password = "casper34"
NAS-IP-Address = 172.20.13.41
NAS-Port = 0
Framed-IP-Address = 192.168.1.5
Acct-Session-Id = "539848"
Message-Authenticator = 0x56316e653df7c0dee4ca4d51eb9605fb
[chocoldap] looking for reply items in directory...
[chocoldap] AlcSLAProfStr -> Alc-SLA-Prof-Str = "sla-profile1"
[chocoldap] AlcSubscProfStr -> Alc-Subsc-Prof-Str = "sub-profile1"
[chocoldap] user rija authorized to use remote access
[chocoldap] ldap_release_conn: Release Id: 0
++[chocoldap] returns ok
++[chap] returns noop
[pap] Config already contains "known good" password. Ignoring
Password-With-Header
++[pap] returns updated
++[expiration] returns noop
++[logintime] returns noop
expand: %{User-Name} -> rija
expand: %{Acct-Session-Id} -> 539848
expand: %{NAS-IP-Address} -> 172.20.13.41
expand: %{Framed-IP-Address} -> 192.168.1.5
expand: %{reply:Alc-Subsc-Prof-Str} -> sub-profile1
expand: %{reply:Alc-SLA-Prof-Str} -> sla-profile1
++[coa] returns noop
Found Auth-Type = PAP
# Executing group from file /etc/freeradius/sites-enabled/wol
+- entering group PAP {...}
[pap] login attempt with password "casper34"
[pap] Using clear text password "casper34"
[pap] User authenticated successfully
++[pap] returns ok
# Executing section post-auth from file /etc/freeradius/sites-enabled/wol
+- entering group post-auth {...}
++[chocoldap] returns noop
Sending Access-Accept of id 44 to 127.0.0.1 port 45089
Alc-SLA-Prof-Str = "sla-profile1"
Alc-Subsc-Prof-Str = "sub-profile1"
# Executing section pre-proxy from file /etc/freeradius/sites-enabled/wol
+- entering group pre-proxy {...}
expand: %{User-Name} -> rija
expand: %{Acct-Session-Id} -> 539848
expand: %{NAS-IP-Address} -> 172.20.13.41
expand: %{Framed-IP-Address} -> 192.168.1.5
expand: %{Alc-Subsc-Prof-Str} ->
expand: %{Alc-SLA-Prof-Str} ->
++[coa] returns noop
Sending CoA-Request of id 97 to 80.236.127.146 port 3799
User-Name = "rija"
Acct-Session-Id = "539848"
NAS-IP-Address = 172.20.13.41
Framed-IP-Address = 192.168.1.5
Alc-Subsc-Prof-Str = "sub-profile1"
Alc-SLA-Prof-Str = "sla-profile1"
Finished request 1.
Thanks for your help
On Wed, Aug 29, 2012 at 7:06 PM, Phil Mayers <p.mayers at imperial.ac.uk>wrote:
> On 29/08/12 17:53, Chocoflex Mamba wrote:
>
> file. Below my update coa section :
>>
>> update coa {
>> User-Name = "%{User-Name}"
>> Acct-Session-Id = "%{Acct-Session-Id}"
>> NAS-IP-Address = "%{NAS-IP-Address}"
>> Framed-IP-Address = "%{Framed-IP-Address}"
>> Alc-Subsc-Prof-Str = "%{reply:Alc-Subsc-Prof-Str}"
>> Alc-SLA-Prof-Str = "%{reply:Alc-SLA-Prof-Str}"
>>
>
> Ok, you say you have reply:Var but the debug says:
>
> Wed Aug 29 18:51:21 2012 : Info: expand: %{Alc-Subsc-Prof-Str} ->
>> Wed Aug 29 18:51:21 2012 : Info: expand: %{Alc-SLA-Prof-Str} ->
>>
>
> Note: no "reply:".
>
> Are you editing the right file? Have you restarted the server?
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/**
> list/users.html <http://www.freeradius.org/list/users.html>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120829/58487f9c/attachment-0001.html>
More information about the Freeradius-Users
mailing list