> Yes this was my first idea as well.  I know I can implement a 
> JAAS login
> module for the client side which will get invoked under and
> circumstances.  But I need to account for the login failures on the
> server side.  I don't want to implement a client side JAAS 
> login module
> which will account for failed logins and than invoke a unsecured bean
> method so that these information get stored on the server side.  This
> would just be to unsafe.  I want to account for the login 
> failure where
> they get checked on the server side.

Secure your beans by assigning a JAAS security domain in jboss.xml.
This will cause the server to invoke the associated JAAS modules
and allow you to achieve the intended result.

The client side JAAS module only needs to store the credentials
and pass them over to the server, the supplied jboss one does
this.

The only thing to watch out for is that jboss will cache the
credentials if the login has been successful.  It will then
compare these credentials with the supplied ones every time a
bean is accessed instead of calling the JAAS modules, for
reasons of performance.  It will only call the JAAS module if
the supplied credentials are different from the cached or if
the cached values have expired.  This is only an issue if the
login credentials are changed (ant not propogated from the
client) or you wish to block a running user.  This caching
behaviour can be turned off though.

HTH,
        Kev

Kevin Conner
This is a personal e-mail. Any views or opinions presented are 
solely those of the author and do not necessarily represent those 
of Orchard Information Systems Ltd.


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to