You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Avnish Pundir <ap...@cisco.com> on 2002/06/19 17:35:29 UTC

Working with TOMCAT Authentication while apache also doing authentication for static contents

Hi,
I have a setup where I have apache+tomcat 4.0.2. Apache is serving static
contents (html/images etc..) and tomcat is taking care of dynamic pages (JSP
and servlet) Apache is protecting entire web site with auth_ldap module.
However I want  some session management based on user and few other stuff
where I need tomcat too to authenticate the user using same credentials.
However I am not able to do so using either Tomcat FORM or BASIC
authentication.
I have same realm Name for both apache authentication and tomcat
authentication. But when I access any of Tomcat protected page (e.g.
/examples/jsp/security/protected/) I used to get "403 - Access to the
requested resource has been denied" error after supplying my credentials in
user form. With manager app, tomcat doesn't even bother to ask for username
and password and used to give me same error on my first try.
However if I disable Apache authentication than both the apps used to work
smoothly without any error.
One thing I am sure is that apache is forwarding authentication header to
tomcat ( I can see authentication header). Now my question is how can I use
same credentials to authenticate users with tomcat (I know this is re-doing
the same thing but I need it).
I have searched mail-archive but can't find any solution there. Any help
would be greatly appreciated.

Thanks
Avnish


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>