Add Attribute into Accounting-Response packet ?
Hi. Forgive for my bad english. When RADIUS got an update accounting packet (PW_STATUS_ALIVE), i need create and add pair (for example "Session-timeout") into request->reply->vps (module rlm_sql). I write apropriate code into rlm_sql.c alivepair = paircreate(PW_SESSION_TIMEOUT, PW_TYPE_INTEGER); alivepair->lvalue = sesstout; pairadd(&request->reply->vps, alivepair); It's need to dynamically change Session-timeout depend by user trafic. Is possible sothat this attributes was sended with Accounting-Response packet to NAS ?
Yurij Korik <korik@tnet.dp.ua> wrote:
When RADIUS got an update accounting packet (PW_STATUS_ALIVE), i need create and add pair (for example "Session-timeout") into request->reply->vps (module rlm_sql).
Even if you make FreeRADIUS send that attribute, the NAS will not understand it. Accounting-Response packets are empty. Session-Timeout can only go into Access-Accept.
It's need to dynamically change Session-timeout depend by user trafic.
RADIUS can't do that. Alan DeKok.
participants (2)
-
Alan DeKok -
Yurij Korik