Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-26-2005, 11:14 PM   #1
LQ Newbie
Registered: Apr 2005
Location: Austin, Texas
Posts: 2

Rep: Reputation: 0
Apache getenv bug?

Apache getenv bug?

This is info from the server:
SERVER_SOFTWARE =Stronghold/2.2 Apache/1.2.5 C2NetUS/2002/php3.0.3

This is the code that had some problem:
fprintf(fp, "%s:%s\t%s\t%s<BR>\n", getenv("REMOTE_USER"), rhost, ctime(&ltime), getenv("HTTP_USER_AGENT"));

Most of the time it returned the REMOTE_USER correctly, which was the username used to login. On three occasions it returned wrong info, and all happened to a user that was using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

The three errors that I noticed were beginning with
dex.cgi: blah blah blah
i/shh/index.cgi: blah blah blah blah blah blah

I expect the getenv("REMOTE_USER") to return 'Bush' if 'Bush' was the login username. It did work most of the time.

Bush: blah blah blah
Old 06-29-2005, 10:00 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
I would imagine it just doesn't recognized the MacOS logged in user, depending on the OS, how they logged in, etc. If you think its a real bug, why not submit it to Apache..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free86 bug or nVidia bug?? ProtoformX Linux - Software 2 05-12-2004 02:38 AM
Help with Apache 2+ user cgi (is there a bug?) verbal Linux - Software 1 05-10-2004 04:56 PM
Bug#227357 Debian upgrade Woody -> Sarge, Apache broken llamakc Debian 3 01-28-2004 04:14 PM
Slackware 9.1 and Apache bug? xipxap Slackware 3 10-14-2003 11:09 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration