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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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."
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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
What is the value for the your php config option: register_long_arrays?
In /etc/php5/apache2/php.ini:
register_long_arrays = Off
In /etc/php5/cli/php.ini:
register_long_arrays = Off
That's the problem. Turning that setting on should do the trick, or at least get your further along.
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."
Are you using SUSE packages for apache and php?
Have you tried compiling your own php and apache?
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.
No problem. Glad I could help.
Thanks,