Solved

forwarding userinfo to servlet

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

713 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