PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » Auth » Bug #9580

Upgrade to 1.4.3 stops my Auth sites from logging on

Details

Submitted2006-12-08 09:11 UTC
Fromjames at dunmore dot me dot uk
Assignedaharvey
StatusBogus
PackageAuth
PHP Version4.4.1
OSLinux
Roadmaps(Not assigned)

Comments

[2006-12-08 09:11 UTC] james at dunmore dot me dot uk

Description:
------------
We have upgraded to version 1.4.3 of Auth, and the login forms no longer work - they return a status of -3 (implying the users credentials are not valid - and no, I'm not typing the user name and password word here, I've triple checked that one). Downgrading back and our forms work again.

I've even copied the code from the documentation and no joy.

I'm stuck with what to do!!!

Many thanks (in advance) for your help.

Test script:
---------------
<?php
require_once "Auth.php";

$options = array(
'dsn' = "mysql://user:password@localhost/database",
);
$a = new Auth("DB", $options);

$a->start();

if ($a->checkAuth()) {
/*
* The output of your site goes here.
*/
}
?>

Expected result:
----------------
User can login (i.e. The output of your site goes here. )

Actual result:
--------------
Auth returns status of -3

[2006-12-08 09:48 UTC] james at dunmore dot me dot uk

I've just tired this on our php5 test box (i.e. I copied and pasted the code across) and it works 100% as it should.

Looks like this is a php4 problem.

Thanks again, James.

[2006-12-12 09:15 UTC] james at dunmore dot me dot uk

Hi,

Many thanks for your response.

The AUTH version that we are upgrading from is 1.3.0 (stable).

I am not defining a cryptType, so I am using the default md5 (however, I have tried defining th cryptType as md5 and this has made no difference)

We have the problem in 2 enviroments, one DB version is 1.6.1 and the other is 1.7.6.

I have also tried installing a local version of the AUTH package (i.e. in a local directory and referencing that version), and the bug does not occur, so I'm inclind to believe that it could be a problem with a dependant package.

Many Thanks,
James.

[2006-12-20 23:05 UTC] james at dunmore dot me dot uk

Hi,

Sorry in the delay on getting back to you.

I have tried:
'auto_quote' => "TRUE"
'auto_quote' => "FALSE"
'auto_quote' => TRUE
'auto_quote' => FALSE

(just to cover all avenue's) - all still do not work.

Pear version is:
PEAR Version: 1.4.9
Zend Engine Version: 2.1.0

could there be something strange with the database?? Really confused why this isn't working!

Many Thanks

[2006-12-21 09:17 UTC] james at dunmore dot me dot uk

Hi,

I will try re-installing Pear as you described.

It is very confusing as it if effecting an (old ish) SUSE box, an up-to date Debian Server, and my own Ubuntu Machine at home.

We are going to try incremental upgrades with our AUTH version so we can see if it is a certain version of it that is causing the problem.

Thank-you for you time and help.

Cheers, James.