#19058 [Opn]: Environment variables, in particular authentication-related ones, are not set
| From: | olivier dot liechti at sun dot com | Date: | Thu, 22 Aug 2002 21:27:10 +0000 |
| Subject: | #19058 [Opn]: Environment variables, in particular authentication-related ones, are not set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17600@lists.php.net to get a copy of this message | ||
ID: 19058
User updated by: olivier.liechti@sun.com
Reported By: olivier.liechti@sun.com
Status: Open
Bug Type: iPlanet related
Operating System: Solaris 8
PHP Version: 4.2.2
New Comment:
I had a look in the source file php4/ sapi/ nsapi/ nsapi.c
(http://cvs.php.net/co.php/php4/sapi/nsapi/nsapi.c?r=1.26&Horde=fbdbac7dc48d637c56347cf9cf5a0533)
And from what I saw, the PHP variables are not set. I found this part
of the code a bit surprising, as I suspect that this is where you would
set the value of the environment variables:
/*********************************************************
/ authentication
/
/ we have to make a 'fake' authenticator for netscape so it
/ will pass authentication through to php, and allow us to
/ check authentication with our scripts.
/
/ php4_auth_trans
/ main function called from netscape server to authenticate
/ a line in obj.conf:
/ funcs=php4_auth_trans
shlib="path/to/this/phpnsapi.dll"
/ and:
/ <Object ppath="path/to/be/authenticated/by/php/*">
/ AuthTrans fn="php4_auth_trans"
/*********************************************************/
int NSAPI_PUBLIC
php4_auth_trans(pblock * pb, Session * sn, Request * rq)
{
/*This is a DO NOTHING function that allows authentication
information
to be passed through to PHP scripts.*/
return REQ_PROCEED;
}
Previous Comments:
------------------------------------------------------------------------
[2002-08-22 17:12:04] olivier.liechti@sun.com
When installed with iPlanet Web Server, PHP works fine except for
authentication. It turns out that some environment variables are not
set properly (probably by NSAPI module?).
This problem has already been reported several times, for example in:
http://bugs.php.net/bug.php?id=14885
http://bugs.php.net/bug.php?id=11181
http://bugs.php.net/bug.php?id=8888
- I have compiled PHP 4.2.2 on Solaris 8, with --nsapi,
--enable-track-vars.
- I have followed the instructions for modifying the obj.conf and
magnus.conf and mime.types files
- I have tested both iPlanet Web Server 4 and iPlanet Web Server 6 SP 3
- same behavior
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19058&edit=1