Solved

Couldn't get User Name

Posted on 2000-03-05
1
227 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
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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.

860 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