PEAR is archived and read-only

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

Home » Authentication » Auth » Bug #1893

Auth brings blank pages...

Details

Submitted2004-07-16 19:02 UTC
Fromphp at majal dot zz
StatusNo Feedback
PackageAuth
PHP Version5.0.0
OSWindows XP
Roadmaps(Not assigned)

Comments

[2004-07-16 19:02 UTC] php at majal dot zz

Description:
------------
Been trying to work with Package Auth, using examples written on the site but I only receive a blank page whenever I use them on a browser (IE/Mozilla) but using php -f <file> properly parses the files. what seems?

Using:
IIS 5.1
PHP 5.0.0
MySQL 4.0.20c
Auth 1.3.0r2

Reproduce code:
---------------
include'Auth/Auth.php';

function loginFunction()
{

echo "<html>";
echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">";
echo "<input type=\"text\" name=\"username\">";
echo "<input type=\"password\" name=\"password\">";
echo "<input type=\"submit\">";
echo "</form>";
echo "</html>\n";
}

$dsn = "$type://$user:$pass@$host/$db";

$a = new Auth("DB", $dsn, "loginFunction");

$a->start();

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

Expected result:
----------------
<html><form method="post" action="test.php"><input type="text" name="username"><input type="password" name="password"><input type="submit"></form></html>

[2005-07-11 20:22 UTC] edudiego at gmail dot com

Hi,

I'm running the site at a Linux/Suse workstation.

I'm having the same problem. The auth worked fine in a the old host, but when the site was moved to the current host, the method $a->start() don't returns the form to be filled, but instead it returns:

<html><body></body></html>

if I dont echo any character before calling it. Otherwise it echoes the caracters.

Here is some of the code:

$a = new Auth("LDAP", $params, "loginFunction",
$auth_opt);
echo "bug";
$a->start();

It gives me:

bug

And if the code is like that:

$a = new Auth("LDAP", $params, "loginFunction",
$auth_opt);
$a->start();

I get:

<html><body></body></html>

If I turn the debug mode on, I get this:

332: LDAP search function will be: ldap_search

But no login form shows up.
I'd like to remark that the package worked fine in the old host, I just can't figure out which is the problem now, once the debug mode gives me no help.

Thanks,
Eduardo