On Mon, Oct 3, 2016 at 9:46 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Oct 3, 2016, at 12:14 PM, Anirudh Malhotra <8zero2ops@gmail.com> wrote:
The solution then is to fetch the Acct-Unique-Session-Id, and to use that.
You are talking about using unlang and fetching acct-unique-sessionid in accounting right also for zapping??
That won't work. You'll have to edit the queries and the source code.
Our plans for version 4 are that this will all be a lot more configurable.
Tried generating a fake accounting packet using radclient and sending acct-unique-session-id in it, apparently the server doesn't take that attribute and still is calculating it. (35) Received Accounting-Request Id 166 from 127.0.0.1:42717 to 127.0.0.1:1813 length 137 (35) User-Name = "xxxxx" (35) User-Password = "\200\030\364\035bL\354\320B\2154\222h\376\026P" (35) Acct-Status-Type = Stop (35) Acct-Session-Id = "17efb0f3/e4:25:e7:bb:b9:69/192806" (35) NAS-Port = 8 (35) NAS-Port-Type = Wireless-802.11 (35) NAS-IP-Address = xxxxx (35) NAS-Identifier = "xxxx" (35) # Executing section preacct from file /usr/local/etc/raddb/sites-enabled/default echo "User-Name=xxxx,User-Password=qwert,Acct-Status-Type = Stop,Acct-Session-Id = 17efb0f3/e4:25:e7:bb:b9:69/192806,Nas-Port = 8,NAS-Port-Type = Wireless-802.11,Nas-Ip-Address=xxxx,Nas-Identifier=xxxxx,Acct-Unique-Session-Id=df0056c509b4e7c9218af535eea70755" | radclient 127.0.0.1:1813 acct testing123 -x