Solved

forwarding userinfo to servlet

Posted on 2002-05-16
3
210 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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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