-
Bug
-
Resolution: Done
-
Major
-
None
-
jboss-fuse-6.2
-
None
-
%
Unable to expand the ensemble if the zookeeper password does not match the admin user password:
- Uncomment the default admin user in etc/users.properties
- fabric:create --clean --resolver localip --zookeeper-password dodge --wait-for-provisioning
- fabric:container-create-child --resolver localip root rc1
- fabric:container-create-child --resolver localip root rc2
- fabric:ensemble-add rc1 rc2
Results in the following error:
Caused by: javax.security.auth.login.FailedLoginException: Password does not match at io.fabric8.jaas.ZookeeperLoginModule.login(ZookeeperLoginModule.java:150) at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:762) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687) at javax.security.auth.login.LoginContext.login(LoginContext.java:595) at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:69) at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232) at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$2.run(Transport.java:202) at sun.rmi.transport.Transport$2.run(Transport.java:199) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:198) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
I have tried the work around mentioned in FABRIC-1240:
- jaas:realms
- jaas:manage --index 1
- jaas:useradd admin test
- jaas:roleadd admin admin
- jaas:update
But the error persists. This work around, I believe delt with an admin user not existing and not the password actually matching.
I have also tried changing the ensemble-password but no joy there either:
- fabric:ensemble-password admin
- fabric:ensemble-password --commit
The same Caused by: javax.security.auth.login.FailedLoginException: Password does not match persists.
- relates to
-
ENTESB-4131 Creating a Fabric Ensemble causes javax.security.auth.login.FailedLoginException: User doesn't exist
- Closed