?
Solved

forwarding userinfo to servlet

Posted on 2002-05-16
3
Medium Priority
?
230 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
[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
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
samri earned 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

718 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