Re: context.xml and custom realm

2008-07-27 Thread Mark Thomas
Caldarale, Charles R wrote: From: Jeff Powell [mailto:[EMAIL PROTECTED] 4. Set up a login.config file for Java (see JAAS LoginConfig file) and tell Tomcat where to find it by specifying its location to the J

RE: context.xml and custom realm

2008-07-23 Thread Jeffrey R. Powell
Well then let's just drop it. Thanks anyway. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wed 7/23/2008 4:39 PM To: Tomcat Users List Subject: RE: context.xml and custom realm > From: Jeffrey R. Powell [mailto:[EMAIL PROTECTED] >

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeffrey R. Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > Jaas.config is a typo should be jaas.conf has the same contents as > auth.conf on the dev server. Let's stop confusing the issue and instead stick to just one system; once tha

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeffrey R. Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > Won't they be passed in the Map options on the Init? I have no idea what you're asking there. > I thought that's what the > JAVA_OPTS=-DJAVA_OPTS=-Djava.security.

RE: context.xml and custom realm

2008-07-23 Thread Jeffrey R. Powell
Jaas.config is a typo should be jaas.conf has the same contents as auth.conf on the dev server. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 4:32 PM To: Tomcat Users List Subject: RE: context.xml and custom realm > From: J

RE: context.xml and custom realm

2008-07-23 Thread Jeffrey R. Powell
Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 4:27 PM To: Tomcat Users List Subject: RE: context.xml and custom realm > From: Jeff Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > I created a auth.conf file in my $CATALINA_HOME/

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeff Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > > Remove the path attribute - it's not allowed. > appName="dropInv" > userClassNames="com.ips.security.UdUser" > roleClassNames=&

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeff Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > I created a auth.conf file in my $CATALINA_HOME/conf and > pointed the JVM to it. How? You should be setting the system property java.security.auth.login.config just for Tomcat rather th

RE: context.xml and custom realm

2008-07-23 Thread Jeff Powell
I just added the appName for testing and it didn't help. com.ips.security.* is in the project .war file. Production server : JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config==/opt/tomcat/conf/jaas.config as well as the JVM settings similar to those on the dev server. Development

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeff Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > java.lang.SecurityException: Unable to locate a login configuration What do you have as the value of the system property java.security.auth.login.config? That has to be set to point

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeff Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > Deploy dropInv.war on 6.0.13 production server and I get this again. > > Is JAAS broken? No, you just haven't put the stated class in a usable location. What's in your ?

RE: context.xml and custom realm

2008-07-23 Thread Jeff Powell
Deploy dropInv.war on 6.0.13 production server and I get this again. Is JAAS broken? INFO: Deploying web application archive dropInv.war Jul 23, 2008 3:59:19 PM org.apache.catalina.realm.JAASRealm parseClassNames SEVERE: Class com.ips.security.UdUser not found! Class not added. Jul 23, 2008 3:59

RE: context.xml and custom realm

2008-07-23 Thread Jeff Powell
Typo in the context.xml > SEVERE: Class com.ips.security.User not found! Class not added. > Jul 23, 2008 2:54:43 PM org.apache.catalina.realm.JAASRealm > parseClassNames > SEVERE: Class com.ips.security.Roles not found! Class not added. > Jul 23, 2008 2:54:44 PM org.apache.catalina.core.StandardCo

RE: context.xml and custom realm

2008-07-23 Thread Jeff Powell
I created a auth.conf file in my $CATALINA_HOME/conf and pointed the JVM to it. /usr/local/apache-tomcat-6.0.16/auth.conf: dropInv { com.ips.security.UdLoginModule required; loginFile="VALIDATION"; loginKey="100!IPS.DROP.AUTH"; userAttr="3"; credAttr="4";

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeff Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > But so far all the examples with JAAS don't show how to > just create the minimal framework for a webapp. While it's true that a single JVM instance only allows specification of

RE: context.xml and custom realm

2008-07-23 Thread Jeff Powell
Chuck, Thanks for your response. > You really, really want to stay away from any use of odbc. You're right, I do. odbc doesn't speak multi-value and unidata doesn't return result sets. > I'm confused; first you ask about JAASRealm, and then close with a comment > about JDBCRealm. Which is

RE: context.xml and custom realm

2008-07-23 Thread Caldarale, Charles R
> From: Jeff Powell [mailto:[EMAIL PROTECTED] > Subject: RE: context.xml and custom realm > > I am trying to create a custom realm but it seems that > with JAAS I have to create a global realm for a specific > application. You shouldn't have to. Just put the inside the

RE: context.xml and custom realm

2008-07-23 Thread Jeff Powell
I am trying to create a custom realm but it seems that with JAAS I have to create a global realm for a specific application. I am also having copious troubles getting it to work. I'd like to be able to use a JDBC like approach with named arguments. My problem is that the database (unidata) does not

RE: context.xml and custom realm

2008-07-10 Thread Caldarale, Charles R
> From: Carol Cheung [mailto:[EMAIL PROTECTED] > Subject: context.xml and custom realm > > Is it possible to place the realm and the database driver somewhere > under webapps/appname and still have Tomcat find it? I really want to > avoid having to restart Tomcat. If so, whe

context.xml and custom realm

2008-07-10 Thread Carol Cheung
I'm trying to set up a custom realm in context.xml and placing it in META-INF, according to http://tomcat.apache.org/tomcat-5.5-doc/config/context.html because I don't want to restart Tomcat if I need to modify the Context element or my custom realm. But according to http://tomcat.apache.org/