tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Fernando Planella Gonzalez <>
Subject Re: JAAS in embedded OpenEJB
Date Wed, 20 Aug 2008 18:54:25 GMT
Well, after some debugging, I've realized that a TomcatSecurityService
is used, which uses the tomcat's engine default realm (the one that uses
The point is: how to configure it to use my context-specific realm?
I have a JAASRealm configured to use my LoginModule, just didn't
realized how to do it...
Thanks in advance.

Luis Fernando Planella Gonzalez

Luis Fernando Planella Gonzalez escreveu:
> Hi all!
> I'm using openejb for tomcat integration, and I'm stuck trying to
> setup the JAAS user validation.
> Here are my questions:
>    1. I've seen on the docs that I might change the conf/login.config,
>       but that is a file that only exists on the standalone server,
>       right? How can I setup a login module that validates the
>       credentials?
>    2. I'm working on a web application which may have several
>       instances deployed in the same tomcat, so I don't want to use
>       the standard tomcat JAASUserRealm because it would require
>       setting up each context in a login.config file (and I don't need
>       user validation in the web layer). Is it correct to pass the
>       identity / credentials in the InitialContext properties?
> I'm almost pullin my hair out of my head with this! :-)
> Thanks!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message