× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



"David Gibbs" <david=Zwy7GipZuJhWk0Htik3J/w@public.gmane.org> wrote in
message news:5.2.0.9.2.20021229124527.031327f8@linux.midrange.com...
> The programs seem to run OK ... except every other request that is sent I
> get a error 500 "Internal Server Error -- Cannot read script output
pipe.".

Ok, I worked with IBM support on this a bit and I think we've figured out
what is happening.... although I'm kind of distressed about the cause.

My CGI program switches user handles so it can operate as the authenticated
user.  Here's the basic logic ...

1. Program starts, user profile is QTMHHTTP
2. Retrieve current user from the PSDS and save it.
3. Switch to the user profile identified in the REMOTE_USER environment
variable.
4. Do work
5. Switch back to the saved user profile (QTMHHTTP)

This, however, does not work properly ... something about the QTMHHTTP user
not having the necessary authority to do a recv.  If, on the other hand, we
switch back to QTMHHTP1 instead ... our program works.

This flies in the face of the concept of leaving the execution environment
in as close to the same state it was when the program started ... and it's
got me just a bit concerned.

Anyone know why I would need to switch to a different user profile when my
CGI program is done?

Thanks!

david




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.