Freeradius2 with mysql function on openwrt.

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Mon Jun 8 18:15:56 CEST 2015


Hi,

> Mon Jun  8 17:16:38 2015 : Error: [sql] Couldn't insert SQL
> accounting START record - Duplicate entry '' for key 'acctuniqueid'

its fairly straight-forward

"Duplicate entry"

your DB has a contrant not allowing 2 record with same acctuniqueid - quite usual.

that acctuniqueid is generated by a hash of RADIUS attributes... if you run the server
in full debug mode you'll see this..and the resulting ID .... NAS kit sends acct-sessions
as some large random thing... you are just sending 'test' - which , if you've
done that before, with same other details , would result in a duplicate entry. 

fix what you are doing and the result will work.

alan


More information about the Freeradius-Users mailing list