Alexandre Chapellon wrote:
> Here is the full debug  outputed during the auth query/reply
...
> rlm_sqlcounter: Sent Reply-Item for user scott,
> Type=Session-Traffic-Limit, value=12694
...
> Sending Access-Accept of id 201 to 127.0.0.1 port 37792
>     Session-Traffic-Limit = ""

  That's the problem.  Looking at dictionary.redback,
Session-Traffic-Limit is a string.  It's not an integer counter.

  If you do really want to use Session-Traffic-Limit, you will have to
change sqlcounter to use a *different* attribute in the reply, such as
Tmp-Integer-0, which is a server-side attribute.  Then use "unlang" in
post-auth to copy it to Session-Traffic-Limit:

        update reply {
                Session-Traffic-Limit = "%{reply:Tmp-Integer-0}"
        }

  That should work.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to