Hullo there, It is obviuos for me that I'm missing something while I'm trying to make a secure invoke of EJB method but I can't see where exacly is the problem.
Here is how a client call EJB method: Hashtable<String,String> props = new Hashtable<String,String>(); props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces"); props.put(Context.PROVIDER_URL, "jnp://localhost:1099"); props.put(Context.SECURITY_PRINCIPAL, "pimpf"); props.put(Context.SECURITY_CREDENTIALS, "passwd"); return new InitialContext(props); } /** * Get the home interface */ protected SessionEJB getHome() throws Exception { Context ctx = this.getInitialContext(); return (SessionEJB)ctx.lookup("pimpf-test/SessionEJB/remote"); } I have very simple LoginModule which extends AbstractServerLoginModule, but in method initialize: public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) { super.initialize(subject, callbackHandler, sharedState, options); log.trace("Principals are: "+subject.getPrincipals()); what the log file says is: Principals are: [] Can anyone tell me what I'm missing on the client side, because the module is called, but somehow it decides that the caller is anonymous? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934344#3934344 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934344 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user