using sqlcounters

Alan DeKok aland at deployingradius.com
Fri Sep 5 07:24:03 CEST 2008


Alexandre Chapellon wrote:
> whenever i launch freeradius -X I get the folloawing error:
> /etc/freeradius/users[205]: Parse error (check) for entry scott: Invalid
> octet string "101" for attribute name "Max-Traffic"

  The modules are initialized in *order*.  The sqlcounter module creates
the attributes on the fly.  But... it can't do this if it hasn't been
run yet.

> Line 205 is the line where user scott is defined in users files.
> I have tryed setting up my own dictionnary (which i think shouldn't be
> needed) with the Max-Traffic attribute defined as interger
> 
> VENDOR ME
> ATTRIBUTE       Max-Traffic     1       integer

  That isn't the correct dictionary file format, but it's not relevant,
either.

> But that doesn't help. I have read all over the web that sqlcounter with
> mysql are considered as stable enough for production , so am quite
> surprised of this issue...
> Any idea?

  List "sqlcounter" in the "instantiate" section.  It will be
initialized before the "users" file is read.

  Alan DeKok.



More information about the Freeradius-Users mailing list