Menu

After upgrade Sue10.0 to 10.1

2006-08-22
2013-03-07
  • Robert March

    Robert March - 2006-08-22

    I have been using the application mshare ( http://freshmeat.net/projects/mshare/ ) which uses HttpAuthPlus.  After the OS upgrade, I am now getting "Authentication Failed" and cannot find the cause.
    As part of the SUSE upgrade, apache2 is upgraded from 2.0 to 2.2 and php4 to php5.

    Any advice appreciated.

    -Robert

     
    • Sean Walcek

      Sean Walcek - 2006-08-22

      I have never tested HttpAuthPlus under php5. A lot of the big changes between php4 and php5 pertain to objects/classes which is what HttpAuthPlus is, so I would imagine that the problem lies in the difference between php4 and php5. Unfortunelty I do not have a version of HttpAuthPlus that is known to run under php5. Going back to php4 is your best bet if possible.

       
    • Robert March

      Robert March - 2006-08-22

      There is nothing in the apache error-log.

      The application uses:
              $login = new HttpAuthPlus;
              $login->setAuthType('file');
              $login->setAuthFile('data/.mshare.db');
              $login->setAuthEncrypt('crypt');
              $login->AuthUser();

      and the file is being created OK with:
      <?php
              require_once("HttpAuthPlus_class.php");

              $user = "";
              $pass = "";

              if ($_SERVER['argc'] != 0) parse_str($_SERVER['QUERY_STRING']);

              $login = new HttpAuthPlus;
              $login->setAuthType('file');
              $login->setAuthEncrypt('crypt');
              $login->setAuthFile('data/.mshare.db');
              $login->AddUser($user, $pass, '');
      ?>

      -Robert

       
      • Sean Walcek

        Sean Walcek - 2006-08-22

        What is the value for the your php config option: register_long_arrays?

         
    • Robert March

      Robert March - 2006-08-22

      In /etc/php5/apache2/php.ini:
      register_long_arrays = Off

      In /etc/php5/cli/php.ini:
      register_long_arrays = Off

       
      • Sean Walcek

        Sean Walcek - 2006-08-22

        That's the problem. Turning that setting on should do the trick, or at least get your further along.

         
    • Robert March

      Robert March - 2006-08-22

      Turned it on.  Reloaded apache.  No change.

      It might be misleading for me to say that authentication failed.  Rather, I should say that the HttpAuthPlus login prompt window re-appears with the fields blank and the browser waiting forever.  As I say, all was fine right up until I upgraded Suse yesterday.

      The author of mshare says:
      "Just tried mshare on Apache 2.2.0, PHP version 5.1.1 (on Windows XP, installed by XAMPP http://www.apachefriends.org\) and it worked fine.
      Potentially, HttpAuthPlus works fine."

       
      • Sean Walcek

        Sean Walcek - 2006-08-22

        Are you using SUSE packages for apache and php?
        Have you tried compiling your own php and apache?

         
    • Robert March

      Robert March - 2006-08-22

      Using the apache and php packages as shipped.

      I have found the problem.  It was an issue in the app using HttpAuthPlus.

      I can confirm that HttpAuthPlus is working under SUSE10.1 with php5.  My apologies for all the bother and I thank you for your contribution which helped me get this resolved.

       
      • Sean Walcek

        Sean Walcek - 2006-08-22

        No problem. Glad I could help.
        Thanks,

         

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.