Darran Lofthouse [
https://community.jboss.org/people/dlofthouse] commented on the
document
"JBoss 7 and Ejb remote call with security"
To view all comments on this document, visit:
https://community.jboss.org/docs/DOC-17581#comment-9050
--------------------------------------------------
Do you see an option to convert this to a discussion? Would probably make more sense as a
discussion than an article.
Anyway you seem to be having the local authentication mechanism kick in for these calls so
you need to disable the mechanism on the client side, for JNDI this can be achieved with
the following option: -
jndiProperties.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS",
*"*JBOSS-LOCAL-USER");
For the EJB connection you will need a line simiar
to: -
remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER
(But adjust the connection name to match the name you are using.)
--------------------------------------------------