Ключевые слова:cisco, radius, ISDN, (найти похожие документы)
Message-ID: <[email protected]>
Date: Tue, 03 Aug 1999 09:49:21 +0200
From: Federico Giannici <[email protected]>
To: "[email protected]" <[email protected]>
CC: [email protected], radius <[email protected]>
Subject: checkrad and cisco
radius wrote:
> I've got a problem with my checkrad and cisco (AS5200, IOS 11.2(8)P): it
> seems as if checkrad didn't recognize cisco's response, allowing my
> 'foo-user'
> to connect all the times he wants.
Some time ago I posted a patch I made to make checkrad know haw to
handle ISDN connection on AS5200 (and possibly every AS5x00), but I had
no feedback from Miquels...
Here is the post again.
------------------------------------------------------------------
Please note that checkrad.pl doesn't doesn't work with ISDN connections.
I added the following code at the start of the cisco_snmp() function in
checkrad.pl to make it know how to query the AS5200 about the ISDN
lines:
if( $ARGV[2] >= 20000 && $ARGV[2] < 30000 )
{
my( $n, @m, $e );
$login = '';
use SNMP_util qw(snmpwalk);
$n = int(substr($ARGV[2], -2, 2)) + 1;
@m = grep( /:$n$/, snmpwalk( 'public@' . $ARGV[1],
'.1.3.6.1.4.1.9.10.19.1.3.1.1.11'
) );
foreach (@m)
{
($e) = /^([^:]+):/;
if( snmpget($ARGV[1], "public",
'.1.3.6.1.4.1.9.10.19.1.3.1.1.10.' . $e) ==
int(substr($ARGV[2], -4, 2)) )
{
$login = snmpget($ARGV[1], "public",
'.1.3.6.1.4.1.9.10.19.1.3.1.1.3.' . $e);
last;
}
}
}
else
{
$login = snmpget($ARGV[1], "public",
"$csm.2.9.2.1.18.$ARGV[2]");
}
Miquels, please can you add it to the next release (moving the 'use'
command
to the BEGIN block)?
Another suggestion: my routers dont have "public" as community. Can you
make
checkrad.pl use the naspasswd file to get the community for SNMP enabled
NAS
(default "public")?
Thanks.
___________________________________________________
__
|- [email protected]
|ederico Giannici http://www.neomedia.it
Amministratore unico - NEOMEDIA sas
___________________________________________________