Hi,
I would like to use a simple LoginModule for client
side JAAS authentication. I have tried using the
LoginModule �SampleLoginModule.java� available with
sun's JAAS tutorial
�http://java.sun.com/j2se/1.5.0/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html�
the authentication at the client
(�SampleLoginModule.java�) is successful when I supply
the username (�testUser�), and password
(�testPassword�) but the username and password are
never sent to the other LoginModule at the backend
(deployed in Jboss).
However when I use
org.jboss.security.ClientLoginModule in my client
application and supply the same username and password
as indicated above, the username and password data
(login credentials) get transmitted and are available
in the LoginModule I've configured/deployed in the
Jboss container and the user is successfully
authenticated in the second LoginModule seamlessly.
The question is; since I'd like to write the
LoginModule at the client application based on sun's
tutorial �SampleLoginModule.java�, what do I need to
add to the code to ensure the login credentials are
sent to the second LoginModule deployed in the Jboss
container (as it does when I use
org.jboss.security.ClientLoginModule)?
I have tried adding the username and password to the
LoginModule �sharedState� variable as shown below in
the login() and then in the commit() after successful
authentication without much success in both cases.
<code>
sharedState.put("javax.security.auth.login.name",
username);
sharedState.put("javax.security.auth.login.password",
password);
</code>
Allan.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user