[prev in list] [next in list] [prev in thread] [next in thread]
List: cistron-radius
Subject: Re: NAS Port absent
From: "Marcio Ghiraldelli" <marcio () neobiz ! com ! br>
Date: 2003-03-14 15:09:53
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I removed the !port_seen condition.
It's a boolean that is FALSE when my NAS Port is 0, wich was my situation.
--------------------------------------------------------------------------------
Marcio Ghiraldelli
Técnico de Suporte
marcio@neobiz.com.br
Rua Prof. José Ranieri, 9-40
CEP 17012-260
Bauru/SP
Fone/Fax: (14)227-4646 Rua Apeninos, 930 Cj 91
CEP 04104-020
Paraíso, São Paulo/SP
Fone/Fax: (11) 5539-3272
--------------------------------------------------------------------------------
----- Original Message -----
From: -:= Leonardo Gama =:-
To: cistron-radius@lists.cistron.nl
Sent: Friday, March 14, 2003 11:48 AM
Subject: Re: NAS Port absent
Did you skip all lines in this function or remove the comments?
----- Original Message -----
From: Marcio Ghiraldelli
To: cistron-radius@lists.cistron.nl
Sent: Friday, March 14, 2003 11:21 AM
Subject: Re: NAS Port absent
Bingo!
I just removed this condition in the function that generates the radutmp file \
at it solved my problem. Thanks for the help!
/*
* Perhaps we don't want to store this record into
* radutmp/radwtmp. We skip records:
*
* - without a NAS-Port (telnet / tcp access)
* - with the username "!root" (console admin login)
* - with Port-Type = Sync (leased line up/down)
*/
if (!port_seen ||
strncmp(ut.login, "!root", RUT_NAMESIZE) == 0
#if 0 /* I HATE Ascend - they label ISDN as sync */
|| nas_port_type == PW_NAS_PORT_SYNC
#endif
)
return 0;
------------------------------------------------------------------------------
Marcio Ghiraldelli
Técnico de Suporte
marcio@neobiz.com.br
Rua Prof. José Ranieri, 9-40
CEP 17012-260
Bauru/SP
Fone/Fax: (14)227-4646 Rua Apeninos, 930 Cj 91
CEP 04104-020
Paraíso, São Paulo/SP
Fone/Fax: (11) 5539-3272
------------------------------------------------------------------------------
----- Original Message -----
From: -:= Leonardo Gama =:-
To: cistron-radius@lists.cistron.nl
Sent: Friday, March 14, 2003 9:46 AM
Subject: Re: NAS Port absent
Are you working in the file acct.c ?
It´s a good idea...
sds,
Leonardo Gama.
----- Original Message -----
From: Marcio Ghiraldelli
To: cistron-radius@lists.cistron.nl
Sent: Friday, March 14, 2003 9:23 AM
Subject: Re: NAS Port absent
Simon,
I agree with you but...
The NAS I mencioned make part of a service of a Telecom that provides a \
comuted internet access to my company, and I don't have access to their system to fix \
that by myself. In fact, this problem is affecting all clients of this service \
around.
The Tele said to me they're trying to fix it, but I can't imagine how long it \
will take. What I imagined it's to generate somekind of a random integer in the \
source code of my Cistron that could be used to simulate the NAS Port. I am still \
trying... hacking the 1.6.6 version... :) Thanks anyway!
----------------------------------------------------------------------------
Marcio Ghiraldelli
Técnico de Suporte
marcio@neobiz.com.br
Rua Prof. José Ranieri, 9-40
CEP 17012-260
Bauru/SP
Fone/Fax: (14)227-4646 Rua Apeninos, 930 Cj 91
CEP 04104-020
Paraíso, São Paulo/SP
Fone/Fax: (11) 5539-3272
----------------------------------------------------------------------------
----- Original Message -----
From: Simon Byrnand
To: cistron-radius@lists.cistron.nl
Sent: Thursday, March 13, 2003 6:35 PM
Subject: Re: NAS Port absent
At 16:09 13/03/03 -0300, you wrote:
> Hello!
> Reccently I had a problem with a NAS client that stopped sending me the
>NAS Port information, wich my cistron-radius 1.6.3 uses to identify the
>instant connected clients.
> I am trying to hack the code making it use another parameters instead
>the NAS Port so radutmp backs to its normal listing.
> Any tips?
Sounds like you're attacking the problem from the wrong end.
If the NAS has stopped sending NAS-Port attributes, you need to fix that.
Hacking on the server isn't going to help you much.
Regards,
Simon
-
List info/subscribe/unsubscribe? See http://www.radius.cistron.nl/list/
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2> I removed the !port_seen
condition.</FONT></DIV>
<DIV><FONT face=Arial size=2> It's a boolean that is
FALSE when my NAS Port is 0, wich was my situation.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<HR align=left width=340 color=#000000 SIZE=1>
<TABLE cellSpacing=0 cellPadding=0 width=340 border=0>
<TBODY>
<TR>
<TD><IMG hspace=20 src="cid:014e01c2ea3b$c3e303c0$c700a8c0@neobiz.com.br">
</TD>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1><B><FONT
size=2>Marcio Ghiraldelli</FONT><BR><FONT color=#ff0000>Técnico de
Suporte</FONT><BR></B><A
href="mailto:marcio@neobiz.com.br">marcio@neobiz.com.br</A>
<BR></FONT></TD></TR>
<TR>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Rua Prof.
José Ranieri, 9-40 <BR>CEP 17012-260<BR>Bauru/SP <BR>Fone/Fax:
(14)227-4646</FONT></TD>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Rua
Apeninos, 930 Cj 91<BR>CEP 04104-020<BR>Paraíso, São Paulo/SP<BR>Fone/Fax:
(11) 5539-3272</FONT></TD></TR></TBODY></TABLE>
<HR align=left width=340 color=#000000 SIZE=1>
</DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=cerealkiller@swissinfo.org
href="mailto:cerealkiller@swissinfo.org">-:= Leonardo Gama =:-</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cistron-radius@lists.cistron.nl
href="mailto:cistron-radius@lists.cistron.nl">cistron-radius@lists.cistron.nl</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 14, 2003 11:48
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: NAS Port absent</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><FONT face=Verdana size=2>Did you skip all lines in this function or
remove the comments?</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=marcio@neobiz.com.br href="mailto:marcio@neobiz.com.br">Marcio
Ghiraldelli</A> </DIV>
<DIV><B>To:</B> <A title=cistron-radius@lists.cistron.nl
href="mailto:cistron-radius@lists.cistron.nl">cistron-radius@lists.cistron.nl</A>
</DIV>
<DIV><B>Sent:</B> Friday, March 14, 2003 11:21 AM</DIV>
<DIV><B>Subject:</B> Re: NAS Port absent</DIV></DIV>
<DIV><FONT face=Verdana size=2></FONT><BR></DIV>
<DIV><FONT face=Arial size=2> Bingo!</FONT></DIV>
<DIV><FONT face=Arial size=2> I just removed this condition
in the function that generates the radutmp file at it solved my problem.
Thanks for the help!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
/*<BR>
* Perhaps we don't want to store this record
into<BR>
* radutmp/radwtmp. We skip
records:<BR>
*<BR>
* - without a NAS-Port (telnet / tcp
access)<BR>
* - with the username "!root" (console admin
login)<BR>
* - with Port-Type = Sync (leased line
up/down)<BR>
*/<BR> if (!port_seen
||<BR>
strncmp(ut.login, "!root", RUT_NAMESIZE) == 0<BR>#if 0 /* I HATE Ascend - they
label ISDN as sync
*/<BR> ||
nas_port_type ==
PW_NAS_PORT_SYNC<BR>#endif<BR> \
)<BR> \
return 0;<BR></DIV></FONT>
<DIV>
<HR align=left width=340 color=#000000 SIZE=1>
<TABLE cellSpacing=0 cellPadding=0 width=340 border=0>
<TBODY>
<TR>
<TD><IMG hspace=20
src="cid:014f01c2ea3b$c3e303c0$c700a8c0@neobiz.com.br"> </TD>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1><B><FONT
size=2>Marcio Ghiraldelli</FONT><BR><FONT color=#ff0000>Técnico de
Suporte</FONT><BR></B><A
href="mailto:marcio@neobiz.com.br">marcio@neobiz.com.br</A>
<BR></FONT></TD></TR>
<TR>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Rua Prof.
José Ranieri, 9-40 <BR>CEP 17012-260<BR>Bauru/SP <BR>Fone/Fax:
(14)227-4646</FONT></TD>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Rua
Apeninos, 930 Cj 91<BR>CEP 04104-020<BR>Paraíso, São
Paulo/SP<BR>Fone/Fax: (11) 5539-3272</FONT></TD></TR></TBODY></TABLE>
<HR align=left width=340 color=#000000 SIZE=1>
</DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: \
#000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original \
Message ----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=cerealkiller@swissinfo.org
href="mailto:cerealkiller@swissinfo.org">-:= Leonardo Gama =:-</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cistron-radius@lists.cistron.nl
href="mailto:cistron-radius@lists.cistron.nl">cistron-radius@lists.cistron.nl</A> \
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 14, 2003 9:46
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: NAS Port absent</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Verdana size=2>Are you working in the file acct.c
?</FONT></DIV>
<DIV><FONT face=Verdana size=2>It´s a good idea...</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>sds,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Leonardo Gama.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=marcio@neobiz.com.br href="mailto:marcio@neobiz.com.br">Marcio
Ghiraldelli</A> </DIV>
<DIV><B>To:</B> <A title=cistron-radius@lists.cistron.nl
href="mailto:cistron-radius@lists.cistron.nl">cistron-radius@lists.cistron.nl</A> \
</DIV>
<DIV><B>Sent:</B> Friday, March 14, 2003 9:23 AM</DIV>
<DIV><B>Subject:</B> Re: NAS Port absent</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2> Simon,</FONT></DIV>
<DIV><FONT face=Arial size=2> I agree with you
but...</FONT></DIV>
<DIV><FONT face=Arial size=2> The NAS I mencioned
make part of a service of a Telecom that provides a comuted internet access
to my company, and I don't have access to their system to fix that by
myself. In fact, this problem is affecting all clients of this service
around.</FONT></DIV>
<DIV><FONT face=Arial size=2> The Tele said to me they're
trying to fix it, but I can't imagine how long it will take.</FONT></DIV>
<DIV><FONT face=Arial size=2> What I imagined it's to
generate somekind of a random integer in the source code of my Cistron that
could be used to simulate the NAS Port. I am still trying... hacking the
1.6.6 version... :)</FONT></DIV>
<DIV><FONT face=Arial size=2> Thanks anyway!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<HR align=left width=340 color=#000000 SIZE=1>
<TABLE cellSpacing=0 cellPadding=0 width=340 border=0>
<TBODY>
<TR>
<TD><IMG hspace=20
src="cid:015001c2ea3b$c3e303c0$c700a8c0@neobiz.com.br"> </TD>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1><B><FONT
size=2>Marcio Ghiraldelli</FONT><BR><FONT color=#ff0000>Técnico de
Suporte</FONT><BR></B><A
href="mailto:marcio@neobiz.com.br">marcio@neobiz.com.br</A>
<BR></FONT></TD></TR>
<TR>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Rua
Prof. José Ranieri, 9-40 <BR>CEP 17012-260<BR>Bauru/SP <BR>Fone/Fax:
(14)227-4646</FONT></TD>
<TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>Rua
Apeninos, 930 Cj 91<BR>CEP 04104-020<BR>Paraíso, São
Paulo/SP<BR>Fone/Fax: (11) 5539-3272</FONT></TD></TR></TBODY></TABLE>
<HR align=left width=340 color=#000000 SIZE=1>
</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: \
#000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original \
Message ----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=simon@igrin.co.nz href="mailto:simon@igrin.co.nz">Simon
Byrnand</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cistron-radius@lists.cistron.nl
href="mailto:cistron-radius@lists.cistron.nl">cistron-radius@lists.cistron.nl</A> \
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 13, 2003 6:35
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: NAS Port absent</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>At 16:09 13/03/03 -0300, you
wrote:<BR>>
Hello!<BR>> Reccently I had a problem with a
NAS client that stopped sending me the<BR>>NAS Port information, wich
my cistron-radius 1.6.3 uses to identify the<BR>>instant connected
clients.<BR>> I am trying to hack the code
making it use another parameters instead<BR>>the NAS Port so radutmp
backs to its normal listing.<BR>> Any
tips?<BR><BR>Sounds like you're attacking the problem from the wrong
end.<BR><BR>If the NAS has stopped sending NAS-Port attributes, you need
to fix that. <BR>Hacking on the server isn't going to help you
much.<BR><BR>Regards,<BR>Simon<BR><BR><BR>- <BR>List
info/subscribe/unsubscribe? See <A
href="http://www.radius.cistron.nl/list/">http://www.radius.cistron.nl/list/</A></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
["sign.gif" (image/gif)]
["sign.gif" (image/gif)]
["sign.gif" (image/gif)]
-
List info/subscribe/unsubscribe? See http://www.radius.cistron.nl/list/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic