Handling Multiusers in PHWEB

Bickel, Jon BickelJ@USFilter.com
Mon, 25 Oct 2004 10:39:20 -0400


Han,

(Just my .02 - not an exact double of your situation, but hopefully of some
assistance...)

PHTEMP is where temporary subfiles are created.  In my particular
implementation, I set PHTEMP (and also a personal area for kept subfiles)
for each user/session in a single central script which is called in each
user's .profile.  

We are not currently running PHWEB, but I do run Quiz/Qtp on the HP-UX box
through the Apache CGI gateway from a homebuilt HTML/JavaScript front end.  

I ran into the same issue which Han is experiencing - every user coming
through the CGI gateway appears to HP-UX as the logonid which is running
Apache.  I got around this by getting the user's UNIX login info (verified
via Perl against the passwd file on the HP-UX) with a HTML login screen, and
storing that verified login as a cookie which gets passed with each
subsequent Quiz/QTP request.  The CGI wrapper receiving the Quiz/QTP
requests sets the cookie-stored user name to an effective web username
environmental variable, and calls the central configuration script mentioned
above. 

This PHTEMP setup script mentioned above tests for the setting of the
effective web username variable, and runs the setup script as the specific
user if set (or the actual user if not).  The actual logonid of the session
is still the web server administrator, but the temp space is effectively
that of the true userid (and the true userid is available as an
environmental variable for all downstream processes).

(Please note, that this an in-house utility where security if of little
concern - I make NO claims as to the security of this approach against a
determined and skilled attack)

Apologies for the long-windedness,

jb





-----Original Message-----
From: Robert Edis [mailto:robeconsult@sbcglobal.net]
Sent: Monday, October 25, 2004 8:57 AM
To: PH List
Subject: RE: Handling Multiusers in PHWEB


Han

I believe you can set the environment variable in each user's .profile file.
IICR it's something like PHTEMP.  It should be documented in the manuals.

Blue
  -----Original Message-----
  From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com]On Behalf Of Lim Ink Hock
  Sent: Sunday, October 24, 2004 10:58 PM
  To: powerh-l@lists.sowder.com
  Subject: Handling Multiusers in PHWEB


  Hi,

  We are implementing PHWEB application running under HP UX 11iv2. PHWEB
dispatcher is started by root Administrator and the web server is apache.
We're now facing Quiz/QTP subfile hanling for multiuser login. At present,
all subfile will write to root directory by default.

  How to assign each time QUIZ write the subfile will be to the person login
directory.

  PhWEB version is 8.41D and PH version is 8.43D.

  Thank You

  Regards
  Han


----------------------------------------------------------------------------
--
  Do you Yahoo!?
  Yahoo! Mail Address AutoComplete - You start. We finish.


= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.