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 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\>\>/');

        while ($curprompt ne "HiPer\>\>") {
                ($curline, $curprompt) = $telnet->waitfor
                        ( String => "HiPer\>\>",
                          Timeout => 5);

i'm not the ones who setup these NASs so i'm not sure if the prompt is something someone set to just be cute. but it works now. and the co-workers telling me they are USR/Total Contol are part right, some of them are some are other USRs, so i still have some poking around to do before i'll actually get it working correctly. but that is a completely different problem.


Ray wrote:
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 using
NASIPAddress NASPortId UserName AcctSessionId


from radacct for the paramaters to test checkrad

what should i check or change to get that working?


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to