AnsweredAssumed Answered

Authentication failed for user [username=admin]

Question asked by fabricioafm on May 14, 2018
Latest reply on May 18, 2018 by fabricioafm

I´m having authentication problem after moving DevTest to external databases. I have two external MySQL databases. One for Enterprise Dashboard and one for Registry. 

The error in registry log is:

 

2018-05-14 16:12:22,429Z (13:12) [ServerRequestResponder 2] ERROR com.itko.lisa.test.LisaSecurityManager - Authentication Error
org.springframework.security.authentication.BadCredentialsException: Authentication failed for user [username=admin]
at com.ca.dts.security.authentication.internal.NamedDelegatingAuthenticationProvider.doAuthentication(NamedDelegatingAuthenticationProvider.java:75)
at com.ca.dts.security.authentication.AbstractDevTestAuthenticationProvider.authenticate(AbstractDevTestAuthenticationProvider.java:195)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174)
at com.itko.lisa.test.LisaSecurityManager.authenticate(LisaSecurityManager.java:754)
at com.itko.lisa.test.LisaSecurityManager.authenticate(LisaSecurityManager.java:713)
at com.itko.lisa.coordinator.TestRegistryImpl.authenticate(TestRegistryImpl.java:2279)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.itko.lisa.net.RemoteMethodExec.execute(RemoteMethodExec.java:57)
at com.itko.lisa.net.ServerRequestHandler.processRMIMessage(ServerRequestHandler.java:533)
at com.itko.lisa.net.ServerRequestHandler.access$600(ServerRequestHandler.java:70)
at com.itko.lisa.net.ServerRequestHandler$5.run(ServerRequestHandler.java:451)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.security.authentication.BadCredentialsException: Bad credentials
at org.springframework.security.authentication.dao.DaoAuthenticationProvider.additionalAuthenticationChecks(DaoAuthenticationProvider.java:99)
at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:166)
at com.ca.dts.security.authentication.internal.NamedDelegatingAuthenticationProvider.doAuthentication(NamedDelegatingAuthenticationProvider.java:70)
... 18 more
2018-05-14 16:12:22,429Z (13:12) [ServerRequestResponder 2] WARN com.itko.lisa.net.RemoteMethodExec - InvocationTargetException on invoke authenticate
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.itko.lisa.net.RemoteMethodExec.execute(RemoteMethodExec.java:57)
at com.itko.lisa.net.ServerRequestHandler.processRMIMessage(ServerRequestHandler.java:533)
at com.itko.lisa.net.ServerRequestHandler.access$600(ServerRequestHandler.java:70)
at com.itko.lisa.net.ServerRequestHandler$5.run(ServerRequestHandler.java:451)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.security.authentication.BadCredentialsException: Authentication failed for user [username=admin]
at com.ca.dts.security.authentication.internal.NamedDelegatingAuthenticationProvider.doAuthentication(NamedDelegatingAuthenticationProvider.java:75)
at com.ca.dts.security.authentication.AbstractDevTestAuthenticationProvider.authenticate(AbstractDevTestAuthenticationProvider.java:195)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174)
at com.itko.lisa.test.LisaSecurityManager.authenticate(LisaSecurityManager.java:754)
at com.itko.lisa.test.LisaSecurityManager.authenticate(LisaSecurityManager.java:713)
at com.itko.lisa.coordinator.TestRegistryImpl.authenticate(TestRegistryImpl.java:2279)
... 13 more
Caused by: org.springframework.security.authentication.BadCredentialsException: Bad credentials
at org.springframework.security.authentication.dao.DaoAuthenticationProvider.additionalAuthenticationChecks(DaoAuthenticationProvider.java:99)
at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:166)
at com.ca.dts.security.authentication.internal.NamedDelegatingAuthenticationProvider.doAuthentication(NamedDelegatingAuthenticationProvider.java:70)
... 18 more

Outcomes