<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
@Alexandre,<br>
<br>
I have one more question.<br>
<br>
I am looking at this post post-auth { } section.<br>
I can see that the values are not added to attributes in
access-accept. For example:<br>
<br>
Module: Checking post-auth {...} for more modules to load<br>
/etc/raddb/sites-enabled/default[460]: ERROR: Failed to find IP
address for %{request:NAS-IP-Address}<br>
/etc/raddb/sites-enabled/default[456]: Errors parsing post-auth
section.<br>
<br>
if I look in access-reqest section (I have comment
%{request:NAS-IP-Address}): <br>
<br>
Ready to process requests.<br>
rad_recv: Access-Request packet from host xxx.xxx.xxx.xxx port
40239, id=140, length=206<br>
Acct-Multi-Session-Id = "1317025759333"<br>
Cisco-Attr-130 =
0x683332332d63616c6c696e672d656e74657270726973652d69643d656e74504258<br>
Calling-Station-Id = "81609000"<br>
NAS-Identifier = "intraswitch"<br>
NAS-IP-Address = xxx.xxx.xxx.xxx<br>
3GPP2-Prepaid-acct-Capability = 0x010600000002<br>
3GPP2-Session-Termination-Capability = 1<br>
h323-conf-id = "h323-conf-id=1317025759333"<br>
Vendor-Specific = 0x00000009<br>
Event-Timestamp = "Sep 26 2011 10:29:19 CEST"<br>
User-Name = "081609000"<br>
User-Password = "1122"<br>
<br>
I can see that the ip from NAS is send. If I have this line written
(NAS-IP-Address = %{request:NAS-IP-Address}) the radius will not
start.<br>
Should this be add the any other section then post-auth {...}?<br>
BR,<br>
MIha<br>
<br>
On 9/24/2011 2:43 PM, Alexandre Chapellon wrote:
<blockquote cite="mid:4E7DD073.7070203@horoa.net" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Le 23/09/2011 22:01, Miha a écrit :
<blockquote cite="mid:1316808080238-4834972.post@n5.nabble.com"
type="cite">
<pre wrap="">Hi @Alexandre,
here is a copy from me default file:
post-auth {
# Get an address from the IP Pool.
# main_pool
update reply {
3GPP2-Prepaid-acct-Capability =
%{request:3GPP2-Prepaid-acct-Capability}
}
update reply {
Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id}
}
</pre>
</blockquote>
<font size="-1">IIRC I use double quoted</font><small> variables
in my config. Anyway, this is odd it happens for the second
attributes and not the first one.<br>
<br>
</small>
<blockquote cite="mid:1316808080238-4834972.post@n5.nabble.com"
type="cite">
<pre wrap="">I have also try this way, but still the same:
update reply {
3GPP2-Prepaid-acct-Capability =
%{request:3GPP2-Prepaid-acct-Capability}
Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id}
}
</pre>
</blockquote>
<small>This sounds better.</small><br>
<blockquote cite="mid:1316808080238-4834972.post@n5.nabble.com"
type="cite">
<pre wrap="">I do not see any problem with quotes.
Thank you!
Br,
Miha
--
View this message in context: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://freeradius.1045715.n5.nabble.com/Access-Accept-tp4832711p4834972.html">http://freeradius.1045715.n5.nabble.com/Access-Accept-tp4832711p4834972.html</a>
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See <a moz-do-not-send="true" 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 moz-do-not-send="true" href="http://www.horoa.net"><img
style="border: none; float: left; margin-right:10px"
src="cid:part1.05080107.09010008@softnet.si"></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 moz-do-not-send="true"
href="http://www.twitter.com/alxgomz">@alxgomz</a></p>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">-
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>
</body>
</html>