PackeTsar / radiuid

An application to extract User-to-IP mappings from RADIUS accounting data and send them to Palo Alto firewalls for use by the User-ID function.
http://packetpushers.net/radiuid/
GNU General Public License v3.0
34 stars 10 forks source link

merge_dicts KeyError with missing log field #13

Closed PackeTsar closed 8 years ago

PackeTsar commented 8 years ago

The 'merge_dicts' method is throwing a KeyError exception and quitting the loop (service) when a FreeRADIUS log was scraped which didn't contain the three required fields (usernameterm, ipaddressterm, and the delineatorterm).

PackeTsar commented 8 years ago

This issue was reproduced on v2.0.0 code by removing the line in the FreeRADIUS log containing the usernameterm text and running the loop (radiuid run)

PackeTsar commented 8 years ago

Bug fixed in devel commit 27364b9 to be released in V2.0.1. Updated source and README. Issue closed