JBOSS-LOCAL-USER:javax.security.sasl.SaslException:无法读取服务器挑战 [英] JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge
问题描述
当我想从另一台服务器访问远程wildfly服务器上的EJB时,我收到以下错误。
When I want to access EJB on remote wildfly server from a different server, i get following error.
Error: Authentication failed: all available authentication mechanisms failed:
JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge [Caused by java.io.FileNotFoundException: /../wildfly/standalone-/tmp/auth/X.challenge (No such file or directory)]
DIGEST-MD5: Server rejected authentication
如果我在服务器中访问EJB,我没有得到任何验证错误。我使用以下访问服务器;
If i access EJB within the server, i don't get any auth error. I use following to access server;
http-remoting://server1:8080
基本上如果我在server1中调用这个,没有问题。如果我从server2调用这个,我得到错误。我假设它在server2中查找存在于server2中的auth文件。
Basically if i call this in server1, there is no problem. If i call this from server2, i get the error. I assume it looks for auth file in server2 which exists in server1.
我不知道我是否必须在EJB或wildfly上进行一些配置,以启用从不同服务器访问。我已经完成了在线可用的每一个步骤,但显然我缺少一些东西。
I am not sure if I have to make some config on EJB or wildfly to enable access from different server. I did go through every steps which are available online but clearly i am missing something.
推荐答案
我用以下更改修正了错误。
I fixed the error with below changes.
像我正在使用 ApplicationRealm
进行远程认证。我更新了下面我的jaas领域。
It looks like i was using ApplicationRealm
for remote authentication as well. I updated below line with my jaas realm.
<http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
此外,我设置 SASL_POLICY_NOANONYMOUS
和<$客户端的c $ c> SASL_POLICY_NOPLAINTEXT 到 false
。
这篇关于JBOSS-LOCAL-USER:javax.security.sasl.SaslException:无法读取服务器挑战的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!