Sending accounting and interim usage to couchbase.

Alan DeKok aland at deployingradius.com
Mon Jan 22 18:10:17 CET 2018


On Jan 22, 2018, at 11:24 AM, Mike Lopes <mlopes at teksavvy.ca> wrote:
> Beware wall of text.  Also, I left all the all the info from the packet, meaning it contains a lot more stuff that I usually do not need to send to couchbase. 
> ...
> Mon Jan 22 10:56:36 2018 : Debug: (1) couchbase: assigning string 'Acct-Session-Id' as string

  That's good.
> 
> Mon Jan 22 10:56:36 2018 : Debug: (1) couchbase: setting 'radacct_51dc686492632c94c03d1346eb471bf5' => '{ "docType": "clientacct", "startTimestamp": "Nov 18 2017 18:55:53 EST", "stopTimestamp": null, "userName": "noneexistent123 at domain.com", "lastStatus": 3, "sessionId": "25466609", "sessionTime": 2047177, "callingStationId": "GigabitEthernet 1\/0.12502026:1250-2026#587204111###pppoe ff:ff:ff:27:41:4c#", "lastUpdated": "Dec 12 2017 11:35:30 EST", "framedIpAddress": "192.168.225.42", "nasIdentifier": "lns01.lan", "nasPort": "Ip:192.168.80.106:192.168.242.189:57524:10046:22601:33289:2758216", "nasIpAddress": "192.168.191.4", "lowercaseUser": "noneexistent123 at domain.com", "userDomain": "domain.com", "uniqueId": "51dc686492632c94c03d1346eb471bf5" }'

  That's good.

  Which means it stores that document..  If not, it would say:

	if (cb_error != LCB_SUCCESS) {
		RERROR("failed to store document (%s): %s (0x%x)", dockey, lcb_strerror(NULL, cb_error), cb_error);

  So that seems to work.

  Is that entry not going to the DB?

  Alan DeKok.




More information about the Freeradius-Users mailing list