Control sub-TLV attributes order in rest module

Бенджамин Томпсон b.thompson at latera.ru
Sun Sep 10 21:53:54 CEST 2017


2017-09-10 20:33 GMT+03:00 Avner Elizarov <avnerelizarov at gmail.com>:

> But how can he handle several attributes with the same name in the json?
>

Not sure if I understood your issue

But, to answer that question:

To add multiple attributes of the same name in JSON:

{
  "Reply-Message":{
    op:"+=",
    value:{
       "This value will be stored in the first Reply-Message attribute",
       "This value will be stored in another Reply-Message attribute"
    }
  }
}

The reply list default list for the attributes in the JSON reply so I think
the following might also work:

Add two Reply-Message attributes:

{
  "Reply-Message": "This value will be stored in the first Reply-Message
attribute",
  "reply:Reply-Message":{
    op:"+=",
    value:{
       "This is another Reply-Message attribute"
    }
  }
}


More information about the Freeradius-Users mailing list