Solved

forwarding userinfo to servlet

Posted on 2002-05-16
3
186 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now