Re: troubles using JAASRealm with SecurityFilter

Matthew Hixson <[email protected]> Thu, 31 Jul 2008 11:37:05 -0700
Newsgroups gmane.comp.java.securityfilter.user
Message-ID <[email protected]>
On Jul 31, 2008, at 7:55 AM, Christopher Schultz wrote:

> Matt,
>
> (Please include the user's list in any of your questions. That way,  
> everyone can benefit from the answer).
>
> Matthew Hixson wrote:
>> Since I'm not permanently tied to JAAS would it make more sense for  
>> me to just implement my own extension of RealmBase and from within  
>> that just call my LoginModule (had to be implemented to work with  
>> JAAS) directly?
>
> That certainly is a possibility. On the other hand, I'm not sure you  
> really want to re-implement all the stuff already provided by  
> JAASRealm.
>
>>  So instead of trying to get JAASRealm to be adapted by  
>> CatalinaRealmAdapter it would just adapt my custom extension of  
>> RealmBase?  Does that sound like it should work?
>
> It will certainly work, and it's exactly what I did when I had the  
> same trouble you are having, now. I actually wanted to do some more  
> stuff with my realm (like recording failed login events, which is  
> not possible using TC's realm implementation), so I was required to  
> do it in the first place.

I've gotten this working.  I wrote my own Realm and slapped in the  
code from my JAAS LoginModule.  There is still an exception when  
Tomcat starts, but that doesn't seem to matter.

>
> Since sf is supposed to work with TC's realms, I'd prefer to repair  
> this feature so that it works with less headache, though. Any help  
> you could provide would be great.

I'd like to help get it working with Tomcat.  However, I'm on vacation  
next week.  Is there anything I can do in the next couple of days?
   Thanks for the help,
    -M@

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/