php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19058 Environment variables, in particular authentication-related ones, are not set
Submitted: 2002-08-22 17:12 UTC Modified: 2002-10-14 19:26 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:2 (40.0%)
From: olivier dot liechti at sun dot com Assigned:
Status: No Feedback Package: iPlanet related
PHP Version: 4.2.2 OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: olivier dot liechti at sun dot com
New email:
PHP Version: OS:

 

 [2002-08-22 17:12 UTC] olivier dot liechti at sun dot 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 17:27 UTC] olivier dot liechti at sun dot com
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;
 }
 [2002-08-28 12:10 UTC] kalowsky@php.net
Since most of us do not use the iPlanet system, and previous attempts to fix this have been blind shots, any chance you might a solution on how to fix this?
 [2002-08-29 04:56 UTC] olivier dot liechti at sun dot com
I will see what I can do - although I found a fix for the authentication problem, there seem to be other problems causing the WebServer to crash. I need some time to investigate these issues.
 [2002-09-09 10:40 UTC] kalowsky@php.net
Any progress on this?
 [2002-09-26 19:57 UTC] sniper@php.net
any updates?
 [2002-10-14 19:26 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 13:01:27 2024 UTC