Thanks for your reply,
The thing is, I need this particular exec to run on an Accounting Request with Type = Start, since there is 2 kind of login on the NAS:
- Login on the Web UI, in this case only Access-Request is sent
- Login for VPN, in this case after Authenticate is accepted, NAS sends an Accounting Start Request. I want to run exec here to distinguish the two kind of login.
Can I define some kind of variable to store the Session-Timeout pass the Authenticate to the pre-acct session ?
On 11/03/2010 09:19 AM, nghiapt wrote:Accounting packets don't have any reply AVPs, so "reply:X" is always empty for accounting packets.
exec acctstart {
wait = yes
program = "/accounting_start_sh.sh %{User-Name} %{reply:Session-Timeout}"
(Sometimes you can send VSAs in Accounting replies, but it's non-standard and goes against the RFCs)
Don't you want this in "post-auth"?