Recovering your Console application password

The Crowd console itself must authenticate to the Crowd framework to perform authentication and authorization calls.

Like an integrated application, if you have an improper password in the configuration file, the following exception will be thrown when the application attempts to connect to Crowd SOAP services:

Caused by: com.atlassian.crowd.integration.exception.InvalidAuthenticationException: Invalid application client.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(
	at org.codehaus.xfire.aegis.type.basic.BeanType.createFromFault(
	at org.codehaus.xfire.aegis.type.basic.BeanType.readObject(
	at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(
	at org.codehaus.xfire.client.ClientFaultConverter.processFaultDetail(
	at org.codehaus.xfire.client.ClientFaultConverter.invoke(
	at org.codehaus.xfire.handler.HandlerPipeline.invoke(
	at org.codehaus.xfire.client.Client.onReceive(
	at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(
	at org.codehaus.xfire.transport.http.HttpChannel.send(
	at org.codehaus.xfire.handler.OutMessageSender.invoke(
	at org.codehaus.xfire.handler.HandlerPipeline.invoke(
	at org.codehaus.xfire.client.Invocation.invoke(
	at org.codehaus.xfire.client.Invocation.invoke(
	at org.codehaus.xfire.client.Client.invoke(
	at org.codehaus.xfire.client.XFireProxy.handleRequest(
	at org.codehaus.xfire.client.XFireProxy.invoke(
	at $Proxy8.authenticateApplication(Unknown Source)
	at com.atlassian.crowd.integration.service.soap.client.GenericClient.authenticate(
	... 73 more
Caused by: org.codehaus.xfire.fault.XFireFault: Invalid application client.
	at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(
	at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(
	at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(
	at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(
	at org.codehaus.xfire.handler.HandlerPipeline.invoke(
	at org.codehaus.xfire.client.Client.onReceive(
	... 84 more

If the password for the Crowd console is lost, the only method of recovery is to reset the password in the configuration file to a known application password. To do this you will need to have access to the Crowd database server and run the following commands:

  1. Get a list of the applications integrated with Crowd:

    mysql> select id, application_name from cwd_application;
    | id     | application_name    |
    |  98305 | crowd               | 
    |  98306 | demo                | 
    |  98307 | crowd-openid-server | 
    | 655361 | jira                | 
    | 753665 | jiveforums          | 
  2. Choose an application for which you have the password, and where you're happy to use the same password for the Crowd application. Let's call your application 'X'. Use application X's application_name to query the database and retrieve X's credentials:

    mysql> select credential from cwd_application where application_name = 'jira';
    | credential                                                                               |
    | sQnzu7wkTrgkQZF+0G1hi5AI3Qmzvv0bXgc5THBqi7mAsdd4Xll27ASbRt9fEyavWi6m0QP9B8lThf+rDKy8hg== | 
  3. Now set Crowd's application credentials to the credential of your application X:

    mysql> update cwd_application set credential = 'sQnzu7wkTrgkQZF+0G1hi5AI3Qmzvv0bXgc5THBqi7mAsdd4Xll27ASbRt9fEyavWi6m0QP9B8lThf+rDKy8hg==' where application_name = 'crowd';
    Query OK, 0 rows affected (0.00 sec)
    Rows matched: 1  Changed: 0  Warnings: 0
  4. Update your application.password value to the value of X's password. If you are using Crowd 1.5 or earlier, the file is located at atlassian-crowd-X.X.X/crowd-webapp/WEB-INF/classes/. If using 1.5.1 or later, the file will be located inside your Crowd-Home Directory.
  5. You may now start Crowd.
  6. If recovering the application password didn't work, you can also change it for another one as the following:

    1. In the <Crowd-Home>/ file, change the application.password entry to "To7CfmPz";
    2. In the database, run the following command:

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

Further information

  • If you have installed only Crowd and no other integrated applications, you'll need to clear all the database tables (if you've already hooked up to a database server) and re-install Crowd. This should not cause you to lose much data, since no other applications have yet been defined.
  • The issue is that the password for the crowd application is being changed during the setup process for crowd. This problem will be resolved with Crowd 1.2 - see CWD-488.
  • You may be tempted to try changing the password back to 'password'. Alas, this won't work, because the passwords are hashed.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport