Menu

radius.cgi problems

Help
2003-07-16
2003-08-23
  • Paul Goldman

    Paul Goldman - 2003-07-16

    I have icradius installed and running.  Trying to get the cgi files working. Usage.cgi works fine, but having issues with radius.cgi.  The current position I am stuck on is with the

    use IC::Radius;
    my $radius = new IC::Radius;
    $radius->init('radius', 'radiuspass', 'localhost', $database);

    From another technote, I changed the use IC::Radius; to "use::Radius;", so it looks like the below section.

    "use::Radius;"
    my $radius = new IC::Radius;
    $radius->init('user', 'password', 'localhost', $database);

    now I am getting the error message:

    [Tue Jul 15 15:01:52 2003] [error] [client 127.0.0.1] Premature end of script headers: radius.cgi
    [Tue Jul 15 15:01:52 2003] [error] [client 127.0.0.1] syntax error at /var/www/cgi-bin/radius.cgi line 61, near "my "
    [Tue Jul 15 15:01:52 2003] [error] [client 127.0.0.1] Global symbol "$radius" requires explicit package name at /var/www/cgi-bin/radius.cgi line 61.
    [Tue Jul 15 15:01:52 2003] [error] [client 127.0.0.1] Global symbol "$radius" requires explicit package name at /var/www/cgi-bin/radius.cgi line 62.
    [Tue Jul 15 15:01:52 2003] [error] [client 127.0.0.1] BEGIN not safe after errors--compilation aborted at /var/www/cgi-bin/radius.cgi line 64.

    Thanks,

    Paul...

     
    • Matt Hess

      Matt Hess - 2003-07-16

      Your perl syntax is wrong. Remove the " characters that you put in.. that solves nothing and instead creates the problem you are seeing now.

       
    • Paul Goldman

      Paul Goldman - 2003-07-22

      OK, I made the change you suggested.  This is the error message I get now. 
      [Tue Jul 22 10:28:05 2003] [error] [client 127.0.0.1] Premature end of script headers: radius.cgi
      [Tue Jul 22 10:28:05 2003] [error] [client 127.0.0.1] Bareword "use::Radius" not allowed while "strict subs" in use at /var/www/cgi-bin/radius.cgi line 60.
      [Tue Jul 22 10:28:05 2003] [error] [client 127.0.0.1] Execution of /var/www/cgi-bin/radius.cgi aborted due to compilation errors.

      It was the same as the orginal message that caused me to change it to the "" before.  Someone suggested it in the icradius mailing group awhile back I found in the archives.

      Any idea what I should do next?

       
      • Matt Hess

        Matt Hess - 2003-07-26

        Without seeing the source section pertaining to the error all I can say is that your copy seems to be screwed up somewhere/somehow.. try grabbing a new copy from the web cvs off of here and then go from there..

         
    • Anonymous

      Anonymous - 2003-08-12

      The problem I got seems also caused by IC::Radius, the error mesg is :Can't locate object method "new" via package "IC::Radius" (perhaps you forgot to load "IC::Radius"?) at ./radius.cgi line 61, <DATA> line 64"
      My environment:
      OS; Mandrake 9.1
      Perl: 5.8.0
      ICRadius: 0.18.1 by RPM installation

       
    • Paul Goldman

      Paul Goldman - 2003-08-23

      I found the fix to my problem.  There is another perl module that needs to be downloaded and installed that is called IC::Radius, ICRADIUS Interface Module.  This was not listed anywhere in the instructions.  After download and install, radius.cgi runs fine. 

       

Log in to post a comment.

MongoDB Logo MongoDB