[ajug-members] questions on how to create a plugable customized login module in JBoss container

JASON DING jding66 at gmail.com
Tue Oct 16 10:16:50 EDT 2007


Hi All AJUG members:

I got a questions on how to create a plugable login module in JBoss
container:

Login security data needed: username, password, client IP Adress

One custmized loginModule named XYZLoginModule has been created, here is
what I am thinking:

1. collect the userid, password, and client ip address via new
PassiveCallbackHandler(userid, password, clientIP) ; Then pass the
callbackhandler to LoginContext via new LoginContext(config,
passiveCallbackHandler).

2. per step 1, all the code will be handled in the application code, are
there a way to have the JBOSS container handle this? can somebody point out
a way on how to all of these, for instance, the sample login-config,
jboss.xml, web.xml,

thanks in advance for any clue?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20071016/660bd50b/attachment.html 


More information about the ajug-members mailing list