Unable to log in to crowd due to password mismatch

Still need help?

The Atlassian Community is here for you.

Ask the community

Starting from version 3.0, Crowd has stopped using the remote SOAP API for authentication purposes.

Symptoms

  • Unable to login to Crowd
  • atlassian-crowd.log file contains the following error:

    2011-03-13 16:49:59,694 http-8095-1 ERROR [crowd.integration.springsecurity.CrowdSSOAuthenticationProcessingFilter] Unable to unset Crowd SSO token
    com.atlassian.crowd.exception.InvalidAuthenticationException: 
    	at com.atlassian.crowd.util.SoapExceptionTranslator.throwEquivalentCheckedException(SoapExceptionTranslator.java:183)
    Caused by: org.codehaus.xfire.fault.XFireFault: The password in the application's crowd.properties file does not match the password in Crowd.
    	at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
    	at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
    	at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
    	at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)

    OR

    2014-08-05 21:04:57,104 http-bio-8095-exec-23 ERROR [crowd.console.action.Login] Failed to connect to the authentication server, please check your crowd.properties
    org.springframework.security.authentication.AuthenticationServiceException: Authorization token cannot be created because client application credentials are invalid
    	at com.atlassian.crowd.integration.springsecurity.CrowdAuthenticationProvider.translateException(CrowdAuthenticationProvider.java:301)
    	at com.atlassian.crowd.integration.springsecurity.CrowdAuthenticationProvider.authenticateUsernamePassword(CrowdAuthenticationProvider.java:164)
    	at com.atlassian.crowd.integration.springsecurity.CrowdAuthenticationProvider.authenticate(CrowdAuthenticationProvider.java:102)
    	at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156)
    	at com.atlassian.crowd.integration.springsecurity.DynamicProviderManagerImpl.authenticate(DynamicProviderManagerImpl.java:40)
    	at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:94)
    	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:195)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    	...
    	at java.lang.Thread.run(Thread.java:724)
    Caused by: com.atlassian.crowd.exception.InvalidAuthorizationTokenException: Authorization token cannot be created because client application credentials are invalid
    	at com.atlassian.crowd.service.soap.client.SecurityServerClientImpl.getSoapApplicationToken(SecurityServerClientImpl.java:219)
    	at com.atlassian.crowd.service.soap.client.SecurityServerClientImpl.authenticatePrincipal(SecurityServerClientImpl.java:255)
    	
    	at com.atlassian.crowd.integration.springsecurity.CrowdAuthenticationProvider.authenticateUsernamePassword(CrowdAuthenticationProvider.java:150)
    	... 87 more
    Caused by: com.atlassian.crowd.exception.InvalidAuthenticationException: 
    	at com.atlassian.crowd.util.SoapExceptionTranslator.throwEquivalentCheckedException(SoapExceptionTranslator.java:189)
    	at com.atlassian.crowd.service.soap.client.SecurityServerClientImpl.authenticate(SecurityServerClientImpl.java:243)
    	at com.atlassian.crowd.service.soap.client.SecurityServerClientImpl.getSoapApplicationToken(SecurityServerClientImpl.java:215)
    	... 92 more
    Caused by: org.codehaus.xfire.fault.XFireFault: The password in the application's crowd.properties file does not match the password in Crowd.
    
    	at com.atlassian.crowd.service.soap.client.SecurityServerClientImpl.authenticate(SecurityServerClientImpl.java:235)
    	... 93 more

Cause

  1. The password in the application's crowd.properties file does not match the password in Crowd.

Resolution

  1. Open <Crowd-Home>/crowd.properties
  2. Edit application.password to 'To7CfmPz'
  3. In the Crowd database, run the following query:

    UPDATE cwd_application 
    SET credential = '{PKCS5S2}+ebYspXujIGikRoLVenN/BpbtwEg+WfR1u1Okk1BJpFG4nJwbeAr0Sv5U+YG7x5k' 
    WHERE application_name = 'crowd';
    
  4. Restart Crowd


Last modified on Sep 2, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.