You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ulrich Rueth <ul...@gmx.de> on 2001/11/05 20:14:52 UTC

JAAS problem tomcat 4.0.1

Hi!
I'm using a Security Manager with tomcat 4.0.1. In the 
conf/catalina.policy file I added all the permissions. Everything works 
fine.
Furthermore I have a file webapps/myapp/my_policy.policy with user 
authentication. In tomcat 3.2.3 I called it setting
TOMCAT_OPTS=-Jjava.security.auth.policy==$TOMCAT_HOME/webapps/myapp/my_policy.policy
and adding the "PolicyInterceptor" element in the server.xml. 
Furthermore I have a library authentication/priviledged.jar in my 
classpath where the priviledged.class is found.

My problem:
In Tomcat 4.0.1 I also set
CATALINA_OPTS=-Jjava.security.auth.policy==$CATALINA_BASE/webapps/myapp/my_policy.policy
but my_policy.policy is NEVER used. I can even delete it or add stupid 
errors, it is not used!

My questions:
- Am I right saying that I don't have to edit anything in the server.xml 
file like I hade to in Tomcat 3.2.3 by adding the PolicyInterceptor 
element (this was for JDK 1.1.*, wasn't it?)
- What do I have to do that Tomcat 4.0.1 uses my_policy.policy?

Thank you
Ulrich


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>