unlang & variable

petr.linke at seznam.cz petr.linke at seznam.cz
Thu May 17 15:59:38 CEST 2018


Hi Arran,
I tried put into soh-server:
update outer.session-state {
     &SOME_ATTRIBUTE := some_value
}

now I can see, that in outer-server (default) the value for &SOME_ATTRIBUTE 
was restored to some_value, so in outer-server I can use this, but in inner-
server I cannot restore &SOME_ATTRIBUTE - in debug I can see "session-state:
No cached attributes". It looks, that soh-server "is on the same level" as 
inner-server, so inner-server is not parent of soh-server, and is not 
possible use outer.session-state for sending values from soh-server to inner
-server. One way is - store  value from soh-server in sql, and in the inner-
server restore this via sql, but this is too "expensive" for system 
resources. 
Really very thanks for your answer, if you have any other idea, I'll be very
glad.

Petr

---------- Original e-mail ----------
From: Arran Cudbard-Bell <a.cudbardb at freeradius.org>
To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Date: 17. 5. 2018 14:04:44
Subject: Re: unlang & variable 
"

> On May 17, 2018, at 1:51 PM, petr.linke at seznam.cz wrote:
> 
> Hi Alan,
> thank you for you answer, but in unlang documentation is written:
> 
> Attributes may be referenced via the following syntax:
> Attribute-Name, Attribute-Name:TAG, Attribute-Name[NUM], list :Attribute-
Name, list :Attribute-Name:TAG[NUM].
> Where list is one of "request", "reply", "control", "proxy-request", 
"proxy-reply" or "outer.request", "outer.reply", 
> "outer.control", "outer.proxy-request" or "outer.proxy-reply".
> 
> So inner.control is not allowed.

Try outer.session-state, you're probably producing and consuming the values 
in different rounds.

-Arran
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.
html"


More information about the Freeradius-Users mailing list