You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "C.F. Scheidecker Antunes" <na...@antunes.eti.br> on 2005/08/12 01:41:58 UTC

JAAS vs JDBRealm

Hello all,

A little question. I've wrote a little web app for school with Servlets. 
In my Eclipse Project I've added a context.xml file in order to 
configure JDBCRealm and it worked perfectly as Tomcat 5.x supports this 
kind of thing, adding a context.xml file inside the META-INF/ subdir.

In order to have the same kind of login functionality within Struts, 
that is 2 tables for Users and Roles could I just configure JDBCRealm 
this same way? Why would I bother using something like JAAS where I have 
to configure the JVM as well?

What are the advantages and disadvantages? JDBCRealm seems much easier 
to me.

Thanks for the input,

C.F.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: JAAS vs JDBRealm

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "C.F. Scheidecker Antunes" <na...@antunes.eti.br>

> In order to have the same kind of login functionality within Struts, that
> is 2 tables for Users and Roles could I just configure JDBCRealm this same
> way? Why would I bother using something like JAAS where I have to
> configure the JVM as well?

If JDBCRealm works for you, I don't see any reason why you'd want to use
JAASRealm.

I'm looking at a stack of printouts an inch thick-- this is my second foray 
into JAAS.  I escaped the first time by wrapping the request and overriding 
isUserInRole().  Not this time.

We've licensed a (Struts-based!) third-party webapp that only supports LDAP
authentication.  Of course, we don't have LDAP, we have Kerberos... and
quite inexplicably, (to me,) there is no
org.apache.catalina.realm.KerberosRealm.  I can't believe that _no one_ has
needed this yet.

If things don't fall into place soon, expect an [OT] post in a blatant
attempt to catch the eye of the Catalina expert(s) that I know frequent the
list. ;)

-- 
Wendy Smoak



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: JAAS vs JDBRealm

Posted by Mark Benussi <ma...@hotmail.com>.
Definitely go for JDBCRealm if you can. The only thing you may need to
support is login bad username password messages in struts. No idea how you
do that in JDBCRealm.

The JAAS LoginContext isn't properly supported in Tomcat.

-----Original Message-----
From: C.F. Scheidecker Antunes [mailto:nando@antunes.eti.br] 
Sent: 12 August 2005 00:42
To: Struts Users Mailing List
Subject: JAAS vs JDBRealm

Hello all,

A little question. I've wrote a little web app for school with Servlets. 
In my Eclipse Project I've added a context.xml file in order to 
configure JDBCRealm and it worked perfectly as Tomcat 5.x supports this 
kind of thing, adding a context.xml file inside the META-INF/ subdir.

In order to have the same kind of login functionality within Struts, 
that is 2 tables for Users and Roles could I just configure JDBCRealm 
this same way? Why would I bother using something like JAAS where I have 
to configure the JVM as well?

What are the advantages and disadvantages? JDBCRealm seems much easier 
to me.

Thanks for the input,

C.F.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org