unlang code to unroll a list attribute
Hello All, how in unlang can a list attribute be converted into a string of the values, eg. the DHCP-Parameter-Request-List into something like: "DHCP-Subnet-Mask,DHCP-Router-Address,DHCP-Domain-Name-Server" ? Thanks and greetings Hermann
regex could match it, tho there might be a less complicated way to split a string in the docs
On Feb 14, 2023, at 8:58 AM, Hermann.Lauer@uni-heidelberg.de wrote:
Hello All,
how in unlang can a list attribute be converted into a string of the values, eg. the DHCP-Parameter-Request-List into something like: "DHCP-Subnet-Mask,DHCP-Router-Address,DHCP-Domain-Name-Server" ?
Thanks and greetings Hermann - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Feb 14, 2023, at 8:57 AM, Hermann.Lauer@uni-heidelberg.de wrote:
how in unlang can a list attribute be converted into a string of the values, eg. the DHCP-Parameter-Request-List into something like: "DHCP-Subnet-Mask,DHCP-Router-Address,DHCP-Domain-Name-Server" ?
Right now there's no easy way to do this. :( In v4 it's done automatically, but we have to get v4 released first. Alan DeKok.
participants (3)
-
Alan DeKok -
Hermann.Lauer@uni-heidelberg.de -
Jonathan Davis