Thanks tcherel and Scott.

Scott I ve read about the LoginInitialContextFactory.

If I get it right I need to do followings:

  | 1. write a new application-policy (login-config.xml) based on a 
login-module or use the pre-defined client-login.
  | 2. in the DD use the 
<security-domain>java:/jaas/client-login</security-domain>
  | 3. update the env with:
  | 
  |   |  env.put( Context.SECURITY_PROTOCOL, "java:/jaas/client-login" )
  |   | 
  | 4. obtain a Context as:
  | 
  |   | org.jboss.security.jndi.LoginInitialContextFactory.getInitialContext( 
env );
  |   | 
  | 
  | 
  | Am I doing it right? I guess stage 2 is not needed if its a java-client (no 
web component.).
  | 
  | Thanks!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862538#3862538

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3862538


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to