Control sub-TLV attributes order in rest module

Avner Elizarov avnerelizarov at gmail.com
Mon Sep 11 12:47:41 CEST 2017


On Sun, Sep 10, 2017 at 10:53 PM, Бенджамин Томпсон <b.thompson at latera.ru>
wrote:

> 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"
> >    }
> >  }
> >}
> Thank you very much for the examples. I need to separate the different
> attributes because I want to put other attributes in between. This forces
> them to be adjacent.



> >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"
> >    }
> >  }
> >}
>  This is better since I can separate the attributes, however I need more
> than 2 attributes with the same name.
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
>


More information about the Freeradius-Users mailing list