File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Apache web server and Tomcat 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache web server and Tomcat 5.0" Watch "Apache web server and Tomcat 5.0" New topic

Apache web server and Tomcat 5.0

Bimal Patel
Ranch Hand

Joined: Aug 29, 2003
Posts: 130

I am trying to configure Apache Web Server with LDAP support in front of Tomcat 5.0. More specifically, I have LDAP configuration in Apache web server and I am using Tomcat for J2EE container. My LDAP configuration works fine with Apache and it does authenticate. Now, how can I get username in my application which is running under Tomcat? Any help would be highly appreciated.

Work Hard, Expect The Worst...<br /> <br />Bimal R. Patel<br />(SCJP 1.2, SCWCD 1.4)
Bimal Patel
Ranch Hand

Joined: Aug 29, 2003
Posts: 130
I've got the solution . In server.xml, specify tomcatAuthentication="false" in the Connector configuration. Which apparently solved the problem.
Manu Dhanda

Joined: Jan 28, 2006
Posts: 23
Hii Bimal,

Can you please provide me the Apache-tomcat configuration steps or the pointer to the document with the latest updates. I want to use the same config as you have, i.e.

Apache with LDAP,
then Apache-tomcat communication.

Will appreciate your response.


"Books are as useful to a stupid person <br />As a mirror is useful to a blind person." <br /> <br />Chanakya quotes (Indian politician, strategist and writer, 350 BC-275BC)
I agree. Here's the link:
subject: Apache web server and Tomcat 5.0
It's not a secret anymore!