Re: checkrad always returning 0? Solved

2003-08-14 Thread Ray
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

checkrad always returning 0?

2003-08-14 Thread Ray
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

Re: checkrad always returning 0?

2003-08-14 Thread Evren Yurtesen
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

Re: checkrad always returning 0?

2003-08-12 Thread Ray
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

Re: checkrad always returning 0? Solved

2003-08-11 Thread Evren Yurtesen
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

Re: checkrad always returning 0? --

2003-08-10 Thread Evren Yurtesen
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

Re: checkrad always returning 0?

2003-08-10 Thread Evren Yurtesen
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

Re: checkrad always returning 0?

2003-08-06 Thread Ray
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