Hello Lutfi -

On Sun, 14 May 2000, Lutfi YUNUSOGLU wrote:
> 

I checked the queries with Cisco and they seems ok. But now I have the same
problem with Ascend (running ver 8.0.2)
It sends NAS-Port value, but if I check it with snmpget ......
.iso.org.dod.internet.private.enterprises.529.12.2.1.3.{NAS-Port} I don't
gget any result or wrong result. The result which I need is somewhere else.
In the same time i notice that .1.3.6.1.4.1.529.12.3.1.4.{Acct-Session-ID}
brings correct value.
Is there any way to use this? Or am I doing something wrong?

Here is the code in question from "Radius/Nas.pm":

#####################################################################
sub isOnlineAscendSNMP
{
    my ($name, $nas_id, $nas_port, $session_id, $client) = @_;

    return 1 unless &Radius::SNMP::snmpgetprogExists();

    my $result = &Radius::SNMP::snmpget($nas_id,
                         $client->{SNMPCommunity},
                         "$Radius::Nas::AscendMIB.12.2.1.3.$nas_port");
    if ($result =~ /^.*\"([^"]+)".*$/)
    {
        return $1 eq $name;
    }
    return 0;
}                                 


If you would like to try to test your theory, you can change the line

                         "$Radius::Nas::AscendMIB.12.2.1.3.$nas_port");
to 
                         "$Radius::Nas::AscendMIB.12.2.1.4.$session_id");

Please let us know what you find, and tell us which version of Ascend code you
are running if the above does work.

NB - if you change the module in the distribution directory, and you have
previously installed Radiator into the Perl directory structure, you will need
to copy the changed module into the Perl directory and restart Radiator.
Otherwise you can just change the copy in the Perl directory directly, but
don't forget to save the original and save your changed copy in either case.

many thanks

Hugh

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to