Results 1 to 1 of 1

Thread: REMOTE_USER "script is protected"?

Threaded View

  1. #1

    Thread Starter
    Addicted Member Phenix's Avatar
    Join Date
    Sep 2002
    Location
    Near A Cube
    Posts
    228

    Question REMOTE_USER "script is protected"?

    I have a form on an html page that is protected under htaccess. When I submit the form, I see the environment variables showing
    GATEWAY_INTERFACE = CGI/1.1
    but I do not see an entry for REMOTE_USER.

    At http://hoohoo.ncsa.uiuc.edu/cgi/interface.html
    it says "This is the specification for CGI version 1.1, or CGI/1.1" and the link at http://hoohoo.ncsa.uiuc.edu/cgi/env.html
    says
    The following environment variables are specific to the request being fulfilled by the gateway program:

    REMOTE_USER
    If the server supports user authentication, and the script is protected, this is the username they have authenticated as.
    The script that processes the form (simply showing the environment variables), is in a path that is not protected by htaccess (i.e. /cgi-bin/). I cannot run perl scripts outside of the cgi-bin path.

    Am I really supposed to protect the script?
    It seems to me that since the html page is already protected by htaccess, the REMOTE_USER should be set and passed to the perl script that resides in the cgi-bin. But I am doing this already so I must be missing something. Plus I could ask for a different username to authenticate for the cgi-bin directory or one of its subdirectories.
    Last edited by Phenix; Jul 12th, 2003 at 09:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width