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 using prefixes as far as i know.

> you can perhaps put
> print($user);
> right after these and you should see all the users in the nas
> from the output also you might figure out what is wrong
> dont put it inside the if clause though :)
> well you can let us know what you get?

tried putting a print $user in different places, and for some reason they 
don't print anything.  but then i don't know perl, so i might be doing this 
wrong too.  

        while ($curprompt ne "\>") {
                ($curline, $curprompt) = $telnet->waitfor
                        ( String => "\>",
                         Timeout => 10);
                $ok = $telnet->print("");
                push @curlines, split(/^/m, $curline);
                print($curline);
        }
...
                        #
                        # Check to see if $user is already connected
                        #
                        print($user);
                        if ($user eq $ARGV[3]) {

and i modified the print statement about user not found just to make sure i'm 
editing the correct module and file.  (and i am)

> what does the output of
> list connections
> command look like?
HiPer>> list connections

CONNECTIONS

                                                        Start       Start
IfName          User Name                   Type   DLL  Date        Time
slot:1/mod:1    jd613                       DIALIN PPP  06-AUG-2003 13:58:58  
slot:1/mod:2    david                       DIALIN PPP  06-AUG-2003 08:50:36  
slot:1/mod:3    allonmy                     DIALIN PPP  06-AUG-2003 11:03:46  

>
> Ray wrote:
> > 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 you have? etc. if you use snmp, did you try to see
> >>manually if you can connect to nas? do you have ucd snmp...
> >>and blah blah, and if you use telnet is Net::Telnet installed? perl
> >>module...
> >
> > etc/clients.conf and etc/naspassword are setup, but since i'm only
> > calling checkrad manually at this point, only the naspassword file has
> > any affect. i was getting an error about bad password before setting up
> > naspassword, but the error message and documentation already got me past
> > that problem.
> >
> > nas: i'm told it is USR/Total Control, but when i manually telnet into it
> > and mimic the commands of the tc module, it doesn't do what it should. 
> > but the commands in the module for netserver are correct, so i'm using
> > that. as for Net::Telnet, it is installed (3.02)
> > snmp isn't being used since i'm not using a nas that checkrad needs snmp
> > for, i'm not sure which version of snmp i have, but it doesn't seem like
> > that would matter in this case where the modules are using telnet to
> > check the nas.
> >
> >>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

Reply via email to