Menu

admin authentification failure

Help
Schtroumpf
2004-11-27
2012-10-11
  • Schtroumpf

    Schtroumpf - 2004-11-27

    Hello,
    I'm using a web hosting service for my website. I have installed phpwiki but I have a problem. Every time I try to login with admin.php page my login is refused.
    Any Idea ?
    thx in advance for your answer

     
    • Reini Urban

      Reini Urban - 2004-11-28

      set register_globals on in your .htaccess or
      use another workaround:
      (untested)

      add this to the top of your lib/config.php:

      if (!ini_get('register_globals'))
      import_request_variables('gp');

       
      • Russell

        Russell - 2005-04-13

        Workaround didn't work for me :(

         
    • alex

      alex - 2004-12-27

      On my admin.php page i got message: "Set the administrator account and password first."

      I searched though "readme" and "install" files, but found nothing about setting admin account. Could you please describe briefly what should I do or give me appropriate source on information?

      Thank you

       
      • Reini Urban

        Reini Urban - 2004-12-27

        Open admin.php in an editor and give the needed admin name and password.
        $wikiadmin = ...
        $adminpasswd ...

        Be sure to check lib/config.php also for more settings.

         
    • Paul Freet

      Paul Freet - 2005-06-13

      I am using PHPWiki 1.2.9 with MySQL and this is a new install. It is working fine except for administration. I cannot authenticate an admin user. I entered an admin user and password into admin.php. It is not accepting that user/pass combination.

      I could be wrong, but does this script require Register Globals - On to work? That would be bad. Most people will not run PHP with Register Globals on for security reasons.

      Is there something else that might be required that I have missed?

      Paul

       
      • qwerty2

        qwerty2 - 2005-06-14

        I had the same problem with my first install. Configurator.php was not accepting name/pwd stored in config.ini.

        Solution: My pwd was too short. Making it longer helped for me.

         
    • HurricaneDavid

      HurricaneDavid - 2005-08-23

      I had the same problem. I did not know what to put in the windows-looking prompts.

      So I just went into admin.php and commented out the code that authenticates the user.

        if (($PHP_AUTH_USER != $wikiadmin  )  ||
            ($PHP_AUTH_PW   != $adminpasswd)) {
           Header("WWW-Authenticate: Basic realm=\"PhpWiki\"");
           Header("HTTP/1.0 401 Unauthorized");
           echo gettext("You entered an invalid login or password.");
           exit;
        }
      

      The above is what you can put comments around to make it work. This is insecure of course. But when all else fails you can do it.

      I changed the comments to an if statement so that it would be easier to control, though. I may add in my own authentication later.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.