tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <l...@bellsouth.net>
Subject Re: Custom Auth for JDBC Realm server xml help 3.3-m4
Date Fri, 01 Feb 2002 22:40:18 GMT
Ignacio,

I need to track a users "security level" for my application.  It's a defect tracking system
for my company and some users should not have visibility of certin defects (off site contractors).
 Therefore, I would like the realm implimentation to drop a users id into the session where
I can pull it out and create a "TMSProjectMember" object with it.

If there is a better way to do this I'm all ears.

Thanks!

Lon Palmer

----- Original Message ----- 
From: "Ignacio J. Ortega" <nacho@siapi.es>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Friday, February 01, 2002 5:27 PM
Subject: RE: Custom Auth for JDBC Realm server xml help 3.3-m4


> > De: lonp@bellsouth.net [mailto:lonp@bellsouth.net]
> > Enviado el: viernes 1 de febrero de 2002 23:21
> 
> > How do I direct Tomcat via the server.xml file to use a 
> > custom class for
> > JDBC auth with Tomcat 3.3-m4?  Do I need to switch to 
> 
> First of all, 3.3.1 is near the door, and 3.3 is final  from some months
> ago.. :)) so better to swith to a most recent release for 3.3..
> 
> For your question, You can use the legacy <RequestInterceptor class=""/>
> syntax in server.xml or better add a new entry in interceptors.xml for
> your new Realm Implementation..
> 
> out of curiosity, What you did need to add to JDBCREalm to suit your
> needs?
> 
> Saludos ,
> Ignacio J. Ortega
> 
> 
> > -----Mensaje original-----
> > Para: tomcat-user@jakarta.apache.org
> > Asunto: Custom Auth for JDBC Realm server xml help 3.3-m4
> > 
> > 
> > Hello All,
> > 
> 4.0 to 
> > use a custom
> > auth class?  I understand that in 4.0 it is easy to set the <realm
> > class=.../> entry but 4.0 has a bug that I want to avoid for now.
> > 
> > I've created a custom class called TMSJDBCRealm which extends 
> > BaseRealm and
> > placed it into the tomcat_modules.jar.
> > 
> > I then tried to add the entry <TMSJDBCRealm ... /> just after the
> > <CredentialsInterceptor /> entry but Tomcat does not appear 
> > to be calling my
> > class.  When I go to a protected url I do get the basic login box but
> > entering a user name and password avail nothing.  I also look 
> > for my debug
> > info to scroll past on the server and nothing is there.
> > 
> > Any help is greatly appreciated.
> > 
> > Thanks
> > 
> > Lon Palmer
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> > 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message