JBOSS-LOCAL-USER:javax.security.sasl.SaslException:无法读取服务器质询 [英] JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge

查看:51
本文介绍了JBOSS-LOCAL-USER:javax.security.sasl.SaslException:无法读取服务器质询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想从不同的服务器访问远程 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 调用它,我会收到错误消息.我假设它在 server1 中存在的 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_NOANONYMOUSSASL_POLICY_NOPLAINTEXT 设置为 false.

Also, i set SASL_POLICY_NOANONYMOUS and SASL_POLICY_NOPLAINTEXT to false on client side.

这篇关于JBOSS-LOCAL-USER:javax.security.sasl.SaslException:无法读取服务器质询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆