On Thu, Nov 10, 2011 at 09:59:02PM +0100, Arran Cudbard-Bell wrote:
Why do you want to include reply items in the request body?
I can give you a concrete usage case for this. You've built up a partial reply so far, by looking up attributes for a user in some database. Now you want to supplement that with a policy decision, implemented by rlm_rest. The policy says: if this user has a static IP address, then tunnel them to a farm of static LNSes (unless the request was from one of those LNSes).
Why do you want to include control items in the request body?
That one I don't have a case for, but the control list is sometimes a convenient dumping ground for temporary variables. These could go in the request list instead. But I also think there is value in making the input and output JSON formats identical. If the reply can set attributes in control and reply lists, then I think it's reasonable that the request should be able to carry those lists too. Regards, Brian.