Hello, can ULANG accept list return? for example update request { mylist = "%{redis:hgetall %{User-Name} }" } i need to run hgetall to return all the hash fields and use them after that. Regards, Mettichi Bassem
On Feb 26, 2018, at 4:47 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
can ULANG accept list return? for example
update request {
mylist = "%{redis:hgetall %{User-Name} }"
}
It can in v4 (very unstable) in cases where it's explicitly required, but not in v3. The problem is that in v3 xlat expansions like the one above write their result to a single contiguous expansion buffer. In v4 xlats produce a linked list of boxed values. There's not a good work around for this unfortunately. -Arran
Thanks Arran for your help. 2018-02-27 2:41 GMT+01:00 Arran Cudbard-Bell <a.cudbardb@freeradius.org>:
On Feb 26, 2018, at 4:47 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
can ULANG accept list return? for example
update request {
mylist = "%{redis:hgetall %{User-Name} }"
}
It can in v4 (very unstable) in cases where it's explicitly required, but not in v3.
The problem is that in v3 xlat expansions like the one above write their result to a single contiguous expansion buffer.
In v4 xlats produce a linked list of boxed values.
There's not a good work around for this unfortunately.
-Arran
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
participants (2)
-
Arran Cudbard-Bell -
Bassem Mettichi