<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Good it's sent in the reply to the nas! Thx<br>
But the sqlcounter i setup was supposed to reset every hours , but
apparently doesn't...<br>
Where can i take a look to find out why?<br>
Is it supposed to update the database to reset counters (which seems a
bad solution to me) or does freeradius maintain separate counters
elsewhere, using accounting database to feed them?<br>
<br>
Alan DeKok a écrit :
<blockquote cite="mid:48C225E1.5090204@deployingradius.com" type="cite">
<pre wrap="">Alexandre Chapellon wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Here is the full debug outputed during the auth query/reply
</pre>
</blockquote>
<pre wrap=""><!---->...
</pre>
<blockquote type="cite">
<pre wrap="">rlm_sqlcounter: Sent Reply-Item for user scott,
Type=Session-Traffic-Limit, value=12694
</pre>
</blockquote>
<pre wrap=""><!---->...
</pre>
<blockquote type="cite">
<pre wrap="">Sending Access-Accept of id 201 to 127.0.0.1 port 37792
Session-Traffic-Limit = ""
</pre>
</blockquote>
<pre wrap=""><!---->
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 <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a>
</pre>
</blockquote>
</body>
</html>