Hi
Thanks for the answer. I tried to follow the advice with the wildfly-config.xml. I ended with a configuration like this:
<configuration>
... (TLS stuff)
<authentication-client xmlns="urn:elytron:1.0">
<authentication-configurations>
<configuration name="ejb">
<set-user-name name="ejb" />
<credentials>
<clear-password password="pwd />
</credentials>
<set-mechanism-realm name="ApplicationRealm" />
<use-provider-sasl-factory />
</configuration>
</authentication-configurations>
</authentication-client>
</configuration>
But i always get "JBOSS-LOCAL-USER: javax.security.sasl.SaslException: JBOSS-LOCAL-USER: Server rejected authentication".
What's wrong with this?