Bug #11181 Updated: PHP_AUTH_USER and PHP_AUTH_PW are not set
| From: | sniper@php.net | Date: | Fri, 12 Jul 2002 20:27:27 +0000 |
| Subject: | Bug #11181 Updated: PHP_AUTH_USER and PHP_AUTH_PW are not set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14017@lists.php.net to get a copy of this message | ||
ID: 11181
Updated by: sniper@php.net
Reported By: grisha@kasenna.com
-Status: Open
+Status: Bogus
Bug Type: iPlanet related
Operating System: Solaris 7
PHP Version: 4.0.5
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-05-30 14:10:49] grisha@kasenna.com
Thanks, but this page is identical to
http://www.php.net/manual/en/install.netscape-enterprise.php.
I checked
every line in obj.conf. PHP works fine, but authentification does not.
------------------------------------------------------------------------
[2001-05-30 05:53:07] sniper@php.net
I'm not at all familiar with NSAPI, but maybe this article
would help you:
http://www.dotvoid.com/article_condensed.php?itemID=48
Try searching it for php4_auth_trans..
Please let me know if you succeed.
--Jani
------------------------------------------------------------------------
[2001-05-29 22:48:47] grisha@kasenna.com
I'm using php 4.0.5 with iPlanet 4.1 and Solaris 7. THe simple PHP
Authentication script, that works on the same machine with Apache does
not work with iPlanet:
if(!isset($PHP_AUTH_USER)) {
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Enter User Name\n";
exit;
} else {
if(!isset($PHP_AUTH_PW)) {
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Enter password\n";
exit;
} else {
if (($PHP_AUTH_USER!="user") || ($PHP_AUTH_PW!="password")) {
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Not authorized\n";
exit;
}
}
}
It acts as if "Cancel" is pressed. PHP_AUTH_USER and PHP_AUTH_PW are
not set after pressing "OK" button. I looked into $HTTP_SERVER_VARS
array there is no HTTP_AUTH_USER or PHP_AUTH_USER there.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11181&edit=1