turns out that the nas is using "HiPer>>" for a prompt so i had to modify the
code to look for that prompt. before it was looking for just ">"
the two lines i ended up changing in the end are:
$telnet = new Net::Telnet (Timeout => 10,
Prompt => '/HiPer
trying to setup Simultaneous-Use and it is working so far, but i haven't
succesfully setup checkrad with it.
using freeRadius 0.8.1
checkrad -d netserver xx.xx.xx.4 366 user 22544538
and it keeps outputting
Returning 0 (login ok)
even when the user is on.
i'm using MySQL for accounting and usi
for one thing, download latest release 0.9 something and try the
checkrad which comes inside...
then did you set etc/clients.conf and etc/naspasswd ? what did you set ?
the important thing is nastype login and password ...
what kind of nas do you have? etc. if you use snmp, did you try to see
man
On Wednesday 06 August 2003 22:13, you wrote:
> for one thing, download latest release 0.9 something and try the
> checkrad which comes inside...
> then did you set etc/clients.conf and etc/naspasswd ? what did you set ?
> the important thing is nastype login and password ...
> what kind of nas do
oh yes, I missed that damn, but you can better look for > in the line
anywhere... should be like this (I think)
Prompt => '/\>/');
so perhaps that way it would work whatever the NAS name is...
If you have different names in different NASes that would be nasty :)
Evnren
Ray wrote:
turns out that
well what I would do is printing something else to test if the checkrad
script is working until there. like
print("hello");
:) and then just before
$telnet->print("list connections");
you can put like
sleep(60);
so it will sleep 60 seconds
so you can see if your user is already inside this netser
did you realize these?
# uncomment this if you use the standard
# prefixes
#$user =~ s/^[PSC]//;
#$user =~ s/\.(ppp|slip|cslip)$//;
you can perhaps put
print($user);
right after these and you should see
On Wednesday 06 August 2003 23:44, you wrote:
> did you realize these?
> # uncomment this if you use the standard
> # prefixes
> #$user =~ s/^[PSC]//;
> #$user =~ s/\.(ppp|slip|cslip)$//;
we aren't u