Solved

forwarding userinfo to servlet

Posted on 2002-05-16
3
204 Views
Last Modified: 2010-03-04
Hello

I have set up my Apache to require users to log in with username and password.
Now I need to forward the username to a servlet running in Tomcat -how is this done?
I've been reading something about environment variables but I can't figure out how it works.

I don't want to do the user authentication in Tomcat.

Thanks in advance

 Lars Hammer
 Dezide ApS
0
Comment
Question by:bettemissen
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
samri earned 100 total points
ID: 7015400
If you use Basic Authentication, once the authentication is sussessfull, and environment variable REMOTE_USER will be available, and the value would be the authenticated username.  And I belive this environment variable could be retreived from your servlet.

In addition, you could defined additional ENV variable in the httpd.conf if you need to add additional vars.

However, I don't think you can pass the password though.
0
 

Author Comment

by:bettemissen
ID: 7015602
Thanks, that is just what I need. I do not need to forward the password so i think this will do the job!

/Lars Hammer
0
 
LVL 15

Expert Comment

by:samri
ID: 7015630
no problem.

take a look at http://httpd.apache.org/docs/ for more information.  

In addition, if you are using PHP, you might be able to see much more information.  However, that is really beyond my knowledge.

cheers.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to configure and install nginx ? 1 464
Leverage Browser Caching 7 70
How can I install php on a ngxin server on droplet 5 136
file path 14 69
In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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