Apache 065 doesn't gice CGI scripts REMOTE_USER

Apache 065 doesn't gice CGI scripts REMOTE_USER

Post by Michael Dill » Fri, 30 Jun 1995 04:00:00



I'm using Apache 065 and I have a problem with authenticated users. The
users have to log in to a particular directory according to a .htpasswd
file and I want to have them fill out a form and submit that form to
a CGI script. All goes well untill the CGI script looks for the username
as authenticated earlier. It's not there in the REMOTE_USER variable.
If I check the logs the username is recorded properly there.

I looked at the NCSA docs and in the CGI specs they let out a little hint
that there are some circumstances where you may not get the authenticated
user? I looked at Apache's source code and it seems like it should work
but it isn't.

The CGI scripts are PERL scripts using cgi-lib

While I'm asking about such things, does anyone know if it is possible to
point the .htaccess directly at the /etc/passwd file? Or will I need to
hack at the server to accomplish this?

--
Michael Dillon                                    Voice: +1-604-546-8022
Memra Software Inc.                                 Fax: +1-604-542-4130

 
 
 

1. Syncing file systems... [7] 65 [4] 65 65 65 65 65 65 65 65 65

Usually, when I bring down my Solaris system (x86 2.4) with init 0, it
reports something like:

The system is now down
Syncing file systems... [7] [3] done

I presume this is a count of dirty blocks to be written back, the "done"
meaning they have all been done. However, sometimes I get something like:

The system is now down
Syncing file systems... [7] 65 [4] 65 65 65 65 65 65 65 65 65 65 65 65 65
65 65 65 65

after which it gives up, and no "done".
What does this mean?
--


2. DLink Network Adapters

3. Apache/CGI: $ENV{'REMOTE_USER'} and POST

4. LaTeX for Suns- where?

5. Apache doesn't seem to run my cgi scripts

6. Top 10 subjects comp.unix.shell

7. apache/mod_perl/cgi:Why doesn't the script terminate when the browser closes connection?

8. 53c7xx support?

9. Apache 2.0.42 doesn't send CGI stderr output to VirtualHost's ErrorLog

10. REMOTE_USER not set in CGI script???

11. Apache Perl/CGI REMOTE_USER Authentication Question

12. Apache CGI-Skripte and REMOTE_USER

13. CGI script doesn't execute