<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
Le 27/09/2011 09:52, snan4love a écrit :
<blockquote cite="mid:1317109930023-4844371.post@n5.nabble.com"
type="cite">
<pre wrap="">Hello Everybody:
Thanks for opening this topic.
Right now,I have set up the FreeRadius+Mysql+Wifi system, I could get into
the internet via this system on my laptop.
But my problem is :
No matter how long i stay in the connection, the AcctInputOctets and
AcctOutPutOctets are always 0;
the debug information from radiusd -X mode regarding this issue is :
[sql] expand: %{User-Name} -> snan4love
[sql] sql_set_user escaped user --> 'snan4love'
[sql] expand: %{Acct-Input-Gigawords} ->
[sql] ... expanding second conditional
[sql] expand: %{Acct-Input-Octets} ->
[sql] ... expanding second conditional
[sql] expand: %{Acct-Output-Gigawords} ->
[sql] ... expanding second conditional
[sql] expand: %{Acct-Output-Octets} ->
[sql] ... expanding second conditional
[sql] expand: %{Acct-Delay-Time} ->
[sql] ... expanding second conditional
[sql] expand: UPDATE radacct SET acctstoptime
= '%S', acctsessiontime = '%{Acct-Session-Time}',
acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 |
'%{%{Acct-Input-Octets}:-0}', acctoutputoctets =
'%{%{Acct-Output-Gigawords}:-0}' << 32 |
'%{%{Acct-Output-Octets}:-0}', acctterminatecause =
'%{Acct-Terminate-Cause}', acctstopdelay =
'%{%{Acct-Delay-Time}:-0}', connectinfo_stop =
'%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}'
AND username = '%{SQL-User-Name}' AND nasipaddress =
'%{NAS-IP-Address}' -> UPDATE radacct SET
acctstoptime = '2011-09-27 15:45:35', acctsessiontime
= '1317', acctinputoctets = '0' << 32 |
'0', acctoutputoctets = '0' << 32 |
Every expand:%{Acct-Input-...} will get nothing.
I know,there must be misconfiguration I made, but I dont know where to fix
it.
Please help me,
Thank you very much.
</pre>
</blockquote>
Well, I guess you don't have those attributes in the accouting
packets sent by your NAS... Have you checked this?<br>
<br>
<blockquote cite="mid:1317109930023-4844371.post@n5.nabble.com"
type="cite">
<pre wrap="">
--
View this message in context: <a class="moz-txt-link-freetext" href="http://freeradius.1045715.n5.nabble.com/Problem-expand-Acct-Input-Gigawords-always-get-nothing-tp4844371p4844371.html">http://freeradius.1045715.n5.nabble.com/Problem-expand-Acct-Input-Gigawords-always-get-nothing-tp4844371p4844371.html</a>
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
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>
<br>
<div class="moz-signature">-- <br>
<!--
horoa.html
Copyright 2011 Alexandre Chapellon <alxgomz@elronde>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
-->
<div style="height: 77px; width: 470px; background-color: #707070"><a
href="http://www.horoa.net"><img style="border: none; float:
left; margin-right:10px"
src="cid:part1.06010002.03060100@horoa.net"></a>
<p style="font-family: miso; font-size: 18px; padding-top: 8px;
color: white">Alexandre Chapellon</p>
<p style="font-family: miso; font-size: 18px; padding-top: 0px;
color: orange">Ingénierie des systèmes open sources et
réseaux.<br>
Follow me on twitter: <a
href="http://www.twitter.com/alxgomz">@alxgomz</a></p>
</div>
</div>
</body>
</html>