in reply to Re: Basic HTTP Authentication
in thread Basic HTTP Authentication

Hi tachyon-II,
I tried printing out all the results in $ENV and there was no REMOTE_USER or REMOTE_PASSWD in the printed results, I tested in Internet Explorer as well as Mozilla Firefox.
Could there be something that needs enabling in apache to allow for the REMOTE_USER and REMOTE_PASSWD variables to be shown?

Thanks,
Gary

Replies are listed 'Best First'.
Re^3: Basic HTTP Authentication
by merlyn (Sage) on Nov 26, 2007 at 03:48 UTC
    Could there be something that needs enabling in apache to allow for the REMOTE_USER and REMOTE_PASSWD variables to be shown?
    Yes, it's my understanding that you have to use the basic auth Apache stuff. No level of triggering it from a user program will work, as noted in that 4-year-old thread you referenced as well. It doesn't do any good to trigger an "auth required" status from a CGI script.

    For Apache 2, the relevant module is mod_auth_basic, and numerous tutorials exist about how to configure it.

Re^3: Basic HTTP Authentication
by Gangabass (Vicar) on Nov 26, 2007 at 04:26 UTC

    You can try to log your session with LiveHTTPHeaders. I think this can help you to find the problem.