Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
How to authenticate under Apache HTTP server and pass information
   to Tomcat ?

How to authenticate under Apache HTTP server and pass information
   to Tomcat ?

2004-06-02       - By Lanto Randriamiharisoa

 Back

Hi all,

I have a little question about using mod_jk2 with Tomcat (4.1.30) and
the Apache Http Server (2.0.29)
My Tomcat Webapp requires user authentication for retrievie some
information (a servlet needs to know the user name logged on), this
authentication must be done on the Apache HTTP Server. So to do this,
I've added the following in the httpd.conf :

<Location /sitools>
   AllowOverride AuthConfig
   AuthType Basic
   AuthName "Your username"
   AuthUserFile "E:/Program Files/Apache Group/Apache2/passwd/passwords"
   AuthGroupFile "E:/Program Files/Apache Group/Apache2/passwd/groups"
   Require group students
</Location>

So since now, the authentication is served by Apache, and it's only
after this process that my servlet is called

I've commented all directives about user authentication in the web.xml
(such as <security-constraint> , <login-config> and <security-role>)
And, of course... :-/, I encountered some problems : my servlet is
unable to retrieve the username.
How can I do to pass the authentication information collected by Apache
Server to my servlet (or Tomcat) ?

Thanks a lot,

--
Lanto



Our name has changed.  Please update your address book to the following format:
"recipient@(protected)".

This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient,  you are not authorized
to read, print, retain, copy, disseminate,  distribute, or use this message or
any part thereof. If you receive this  message in error, please notify the
sender immediately and delete all  copies of this message.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.