[jboss-dev-forums] [JBoss AS 7 Development] - Re: remote ejb client username is encrypted at the server(JBOSS7.1 CR1)
jw
do-not-reply at jboss.com
Thu Feb 23 08:42:43 EST 2012
jw [https://community.jboss.org/people/jw] created the discussion
"Re: remote ejb client username is encrypted at the server(JBOSS7.1 CR1)"
To view the discussion, visit: https://community.jboss.org/message/719095#719095
--------------------------------------------------------------
login is ok now using the following configuration
server config:
client initial context:
ctx.put("java.naming.factory.initial", "org.jboss.naming.remote.client.InitialContextFactory");
ctx.put("jboss.naming.client.ejb.context", true); // can not be in jndi.properties. Requieres boolean, does not accept String
ctx.put(InitialContext.PROVIDER_URL, "remote://localhost:4447");
ctx.put(InitialContext.SECURITY_PRINCIPAL, "test");
ctx.put(InitialContext.SECURITY_CREDENTIALS, "tset");
jboss-ejb-client:
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port=4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=true
remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT=false
remote.connection.default.username=test
remote.connection.default.password=tset
The key thing was that the username/password must be passed in on 2 places: in the jboss-ejb-client file AND in InitialContext. Is this how it should be or does anyone knows a better solution?
Redirecting the ApplicationRealm to my-security-domain still doesn't work. How has this to be done?
<security-realm name="ApplicationRealmEdis">
<authentication>
<jaas name="edis-security-domain"/>
</authentication>
</security-realm>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/719095#719095]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120223/3df03dbe/attachment.html
More information about the jboss-dev-forums
mailing list