Cistron 1.6.4 + Cisco AS5300
Brent Reich
brent@unixcentauri.com
Thu, 6 Sep 2001 16:01:27 -0500
I am having some problems getting these 2 to work together, i think i
have the cistron configured correctly as i can successfully run a
radtest locally, and i get info from my actual NAS server.
the server is OpenBSD 2.9 running Cistron 1.6.4
the NAS is a Cisco AS5300 with the c5300-i-mz.120-2.XD1 image on it.
i have patched my checkrad ( i use simultaneous login checks in my users
file. ) with a "unofficial patch" linked off the cistron website. the
link claims it is for aa AS5800, but in the code it claims for a AS5200,
i have no idea if the 5300's are differet or not.
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]");
}
here is the error i am getting in radius.log:
Thu Sep 6 10:12:03 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 15 not found
Thu Sep 6 10:12:39 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 79 not found
Thu Sep 6 10:13:43 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 45 not found
Thu Sep 6 10:14:03 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20113 not found
Thu Sep 6 10:14:46 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 36 not found
Thu Sep 6 10:16:20 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20118 not found
Thu Sep 6 10:16:22 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 67 not found
Thu Sep 6 10:16:27 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20120 not found
Thu Sep 6 10:17:11 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 24 not found
Thu Sep 6 10:17:39 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 81 not found
Thu Sep 6 10:17:47 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20006 not found
Thu Sep 6 10:17:52 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 58 not found
Thu Sep 6 10:17:56 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20008 not found
Thu Sep 6 10:18:04 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20009 not found
Thu Sep 6 10:18:13 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20013 not found
Thu Sep 6 10:18:19 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 32 not found
Thu Sep 6 10:18:21 2001: Error: Accounting: logout: login entry for NAS
d-nas00 port 20014 not found
I am pretty green at Radius and SNMP, if i need to include more info for
this please let me know and i will provide it. Needless to say in my
details file i only get "STOP" records. anybody have any ideas or
suggestions? TIA
--
Brent Reich, CCNA
brent@unixcentauri.com
http://www.unixcentauri.com
0110111001101111011011100111001101100101011011100111001101100101