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} This is what i have in my update coa : 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}" } and this is the result with debug : Sending Access-Accept of id 15 to 127.0.0.1 port 55966 Alc-SLA-Prof-Str = "sla-profile2" Alc-Subsc-Prof-Str = "sub-profile1" WARNING: Empty pre-proxy section. Using default return values. Sending CoA-Request of id 165 to 80.236.127.146 port 3799 User-Name = "chocouser" Acct-Session-Id = "539848" NAS-IP-Address = 172.20.13.27 Framed-IP-Address = 192.168.1.5 Alc-Subsc-Prof-Str = "" Alc-SLA-Prof-Str = "" On Wed, Aug 29, 2012 at 5:03 PM, Fajar A. Nugraha <list@fajar.net> wrote:
On Wed, Aug 29, 2012 at 9:54 PM, Chocoflex Mamba <burvinch@gmail.com> wrote:
tried the syntax %<reply>Attribute-Name but it's still empty.
Of course it's empty. The syntax is wrong. Where did you read that? Or is it a typo?
[chocoldap] looking for reply items in directory... [chocoldap] AlcSLAProfStr -> Alc-SLA-Prof-Str = "sla-profile2" [chocoldap] AlcSubscProfStr -> Alc-Subsc-Prof-Str = "sub-profile1"
so those are reply attributes?
expand: %{Alc-Subsc-Prof-Str#} -> expand: %{Alc-SLA-Prof-Str} ->
Try
%{reply:Alc-Subsc-Prof-Str#} %{reply:Alc-SLA-Prof-Str}
See http://freeradius.org/radiusd/man/unlang.html for details.
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html