This is first time I am implementing JAAS mechanism in my EJB3.0 + Jboss 5.1.0 applicaiton.
I really appreciate if anybody can guide me to resolve following exception which am getting while performing authentication through standalone Java application.
Please find following client and server side configured xml and Java code.
Are you sure you want to use the DataBaseServerLoginModule on the client side (and not on server side)? That login module requires not just the transaction manager but also the datasource to be accessible on the client side.
Perhaps you could write your own login module which doesn't require transaction manager and simply uses JDBC to do the authentication. By the way, you do know that the client side usually passes on the login info (username, password) to the server side (using ClientLoginModule) and doesn't do the real authentication, right? The server is then setup to do the authentication (maybe using DataBaseServerLoginModule for example) and authorization. That way, you don't really need the DataBaseServerLoginModule on the client side. This and this might be of some help.
Joined: Jun 27, 2009
Before your last post I just got your point of using ClientLoginModule which is enough as far as actual authentication happens at server side where I have used DataBaseServerLoginModule.
I am just done with implementation with ClientLoginModule and changed configuration file with just following,
Now everything (authorization and authentication) is working smoothly with my EJB 3.0 modules.
You really rock Jai, Thanks for your help and Happy Independence day in advance .