Combined Local and Ldap authentication in JBoss Domain Mode

Solution Verified - Updated -

Issue

When adding a new host controller to JBoss domain controller, getting below error:

Could not connect to remote domain controller remote+https://1.1.1.1:9993: java.lang.IllegalStateException: WFLYHC0043: Unable to connect due to authentication failure.
[Host Controller]   at org.jboss.as.host.controller.RemoteDomainConnectionService.rethrowIrrecoverableConnectionFailures(RemoteDomainConnectionService.java:674)
[Host Controller]   at org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:293)
[Host Controller]   at org.jboss.as.host.controller.DomainModelControllerService.connectToDomainMaster(DomainModelControllerService.java:1010)
[Host Controller]   at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:721)
[Host Controller]   at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
[Host Controller]   at java.lang.Thread.run(Thread.java:750)
[Host Controller] Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed:
[Host Controller]    PLAIN: javax.security.sasl.SaslException: PLAIN: Server rejected authentication
[Host Controller]   at org.jboss.remoting3.remote.ClientConnectionOpenListener.allMechanismsFailed(ClientConnectionOpenListener.java:109)
[Host Controller]   at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:445)
[Host Controller]   at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:244)
[Host Controller]   at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
[Host Controller]   at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
[Host Controller]   at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
[Host Controller]   at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
[Host Controller]   at ...asynchronous invocation...(Unknown Source)
[Host Controller]   at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:599)
[Host Controller]   at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:561)
[Host Controller]   at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:549)
[Host Controller]   at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:227)
[Host Controller]   at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:121)
[Host Controller]   at org.jboss.as.host.controller.RemoteDomainConnection.lambda$openConnection$0(RemoteDomainConnection.java:223)
[Host Controller]   at org.wildfly.common.context.Contextual.runExceptionAction(Contextual.java:108)
[Host Controller]   at org.wildfly.security.auth.client.AuthenticationContext.run(AuthenticationContext.java:273)
[Host Controller]   at org.jboss.as.host.controller.RemoteDomainConnection.openConnection(RemoteDomainConnection.java:223)
[Host Controller]   at org.jboss.as.host.controller.RemoteDomainConnection$InitialConnectTask.connect(RemoteDomainConnection.java:594)
[Host Controller]   at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)
[Host Controller]   at org.jboss.as.host.controller.RemoteDomainConnection.connect(RemoteDomainConnection.java:147)
[Host Controller]   at org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:288)
[Host Controller]   ... 4 more
[Host Controller]   Suppressed: javax.security.sasl.SaslException: PLAIN: Server rejected authentication
[Host Controller]       at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.handleEvent(ClientConnectionOpenListener.java:760)
[Host Controller]       at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.handleEvent(ClientConnectionOpenListener.java:602)
[Host Controller]       at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
[Host Controller]       at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
[Host Controller]       at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
[Host Controller]       at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
[Host Controller] 
[Host Controller] 09:38:16,810 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0147: No domain controller discovery options remain.
[Host Controller] 09:38:16,811 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0002: Could not connect to master. Error was: java.lang.IllegalStateException: WFLYHC0120: Tried all domain controller discovery option(s) but unable to connect

Environment

  • Red Hat JBoss Enterprise Application Platform 7.4.x
  • Red Hat JBoss Enterprise Application Platform 8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content