Related Question
I already have my own authentication/authorization scheme. I would like to be able to fetch my user-object which holds the authorization info by using:
User user = (User)request.getUserPrincipal();
What interface or which class should be overriden to let my authentication class be used by tomcat directly. ie How do I make a acceptable RequestInterceptor.
(On JRun this can be done overriding "allaire.jrun.security.AuthenticationPrincipal", for full explanation see the article "JRun Authentication" by Karl Moss, www.allaire.com)
/David Svensson
> JDBCRealm.howto
> is in the documentation in tomcat
> but I perssonnaly never manage to make it works until
> the tomcat 3.2.1
> secondly, you un comment the
>
> <!-- UnComment the following and comment out the
> above to get a JDBC realm.
> Other options for driverName:
>
> driverName="oracle.jdbc.driver.OracleDriver"
>
> connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
> connectionName="scott"
> connectionPassword="tiger"
>
> driverName="org.gjt.mm.mysql.Driver"
>
> connectionURL="jdbc:mysql://localhost/authority"
> connectionName="test"
> connectionPassword="test"
>
> <!-- "connectionName" and
> "connectionPassword" are optional. -->
>
> and comment the
> <!-- Check permissions using the simple xml file. You
> can
> plug more advanced authentication
> modules.
>
> <RequestInterceptor
>
> className="org.apache.tomcat.request.SimpleRealm"
> debug="0" /> -->
> othwise the simpleRealm overload teh JDBC
> And don't forget the driver into \lib
>
> @++
>
>
> --- Vijay Prabhakar <[EMAIL PROTECTED]>
> wrote:
> > My apologies...I didn't do that cut and paste quite
> > the way I meant to
> > :)
> >
> >
> > -----Original Message-----
> > From: Vijay Prabhakar
> > Sent: Thursday, January 18, 2001 5:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Pointers on JDBCRealms
> >
> >
> > If you get such a document, could you pass it my
> > way? I'm interested in
> > that as well. Thanks!
> > -Vijay
> > -----Original Message-----
> > From: Peter Giannopoulos
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 18, 2001 5:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: Pointers on JDBCRealms
> >
> >
> > Hello all,
> > can anyone give me some pointers on documentation or
> > even examples that
> > make
> > use of JDBCRealms in a clear and concise manner?
> >
> >
> > Thanks in advance.
> >
> >
> >
> ----------------------------------------------------------
> >
> > Peter Giannopoulos, Software Developer
> > Gemplus Software, Advanced Projects
> > Group
> > Phone: +15147322434
> > Fax: +15147322401
> > Gemplus Card International,
> > Http://www.gemplus.fr
> >
> -----------------------------------------------------------
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
