Is there a XLAT IF(..) like expansion?

g4-lisz at g4-lisz at
Tue Mar 28 17:41:19 UTC 2023

Hello again 

I'm trying to accomplish the following (pseudo code):

In rlm_rest module config:

authenticate {
 body = "json"
 data = '{ 
 "token" : "xxxxxxx", 
 "states": [ "x", "y" ], 
 "resourceIds: PSEUDO_CODE>> IF(%{control:Cust-Resource-Uuid}, [ "%{control:Cust-Resource-Uuid}" ], null) <<PSEUDO_CODE , 

I.e. when the custom attribute is set, the JSON's "resourcesIds" property should be an array containing the attribute's string content, otherwise "null".

Your help is much appreciated!


More information about the Freeradius-Users mailing list