Solved

Couldn't get User Name

Posted on 2000-03-05
1
228 Views
Last Modified: 2013-12-23
Hi,
  I setup .htaccess file in my directory.  When I tried to get "REMOTE_USER" in my cgi, I got empty.  I tried to print out all environment variables and I gto nothing about "REMOT_USER".
What is wrong?
Thanks!
0
Comment
Question by:jpchen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
mapc earned 50 total points
ID: 2625838
First in the httpd.conf (assuming apache) AllowOverride AuthConfig
should be set for the directory you're accessing.
Then, you have to create .htaccess which will have:
AuthType basic
AuthName "realm of auth"
AuthUserFile /some/file/path
require valid-user

Then, what you're trying to do will succeed.

And, depends on your version, it may be called by other name, though I've always seen it as: REMOTE_USER
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question