Hi Darran,
Thanks for your quick response!
I agree with your points.
Assuming the default configuration is in use here the option would be to add a user to the application realm to represent the client server, then I assume you are using a remote outbound connection definition? The outbound connection definition should then use an authentication context for the identity which represents the application server - this should all be possible at the subsystem level leaving your deployment untouched and unaware of this server level authentication.
--> yes, we have added application realm user but when we invoke the Non authenticated EJBs it goes to JAAS authentication instead of applicationRealm to authenticate the connection. Here is the configuration
<subsystem xmlns="urn:jboss:domain:remoting:4.0">
<http-connector name="http-remoting-connector" connector-ref="default" sasl-authentication-factory="my-application-sasl-authentication"/>
<outbound-connections>
<remote-outbound-connection name="ejb-outbound-connection" outbound-socket-binding-ref="ejb-outbound" authentication-context="ejb-outbound-context"/>
</outbound-connections>
</subsystem>
<sasl-authentication-factory name="my-application-sasl-authentication" sasl-server-factory="configured" security-domain="jaasSD">
<mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
<mechanism mechanism-name="DIGEST-MD5">
<mechanism-realm realm-name="jaasRealm"/>
</mechanism>
</mechanism-configuration>
After this configuration, when we hit the non authenticated EJBs with application user credentials, it goes to JAAS authentication to authenticate the connection and fails. are we missing anything here?
can you suggest the right server configuration for application realm and Jaas realm working together?
Thanks,
Pankaj K.