New Users can not login to crowd
Asked by Ben Williams:

Somehow the integration crowd and confluence got broken :(.

I can crate new Users in confluence and even the authentication test for confluence in crowd is working, but when the user tries to log in to confluence he receives the message:

**The following error(s) occurred:**

* Sorry, your username and password are incorrect. Please try again.

All users that where created before my coworker messed up the installation, can still log in, but only when the select the "remember me" checkbox after I activated the SSO.

I don't know where to look for more errors and how to fix them.

I noticed that new users are not added to the confluence table cwd_user, all users in ther can login.

How can fix this?


Answers:
author: C. Faysal
body: check crowd info your confluence database and see if it matches with the crowd.properties file

```
SELECT * FROM cwd_directory_attribute;
```

comments: author: C. Faysal
body: you're welcome. glad i could help


author: Ben Williams
body: That was the location wher the old password was.

Now everythings works perfectly.

Thank you very much.


author: Jobin Kuruvilla [Adaptavist]
body: Looking at the error message in the logs, the "confluence" application registered in Crowd has a different password. Either rest the password or change it to the correct one in Confluence User directory settings.

comments: author: C. Faysal
body: agree 100%


author: Ben Williams
body: At which places do I have to reset password?

I don't want to miss a file or database entry.


author: C. Faysal
body: solution A (no restart needed)

your $Confluence_Install/confluence/WEB-INF/classes/crowd.properties should contain something like

```
application.name                        confluenceapplication.password                    &lt;passwd&gt;
```

take that passwd and use it to update your "confluence" application in crowd.

solution B (you will need to restart confluence)

in crowd go to your applications. select "confluence" and update the password there.

next step you will need to update the file i mentioned in solution A) and insert the new password there.


author: Ben Williams
body: I managed to set all passwords to the same password:

I reset the password in Crowd under applications for crowd and confluence to the same value.

Also I set that password in the following files:

* crowd\\crowd.properties
* crowd\\etc\\crowd.properties
* crowd\\etc\\openidserver.properties
* crowd\\client\\conf\\crowd.properties
* crowd\\crowd-openidserver-webapp\\WEB-INF\\classes
* Confluence\\confluence\\WEB-INF\\classes\\crowd.properties

But I still get the following logentries:

2013-01-31 08:41:59,396 http-8095-2 INFO \[plugin.rest.filter.BasicApplicationAuthenticationFilter\] Application 'confluence' failed authentication  
I really don't know what to do next :(


author: Vishnukumar Vasudevan
body: What does atlassian-crowd.log says ?

comments: author: Ben Williams
body: The logfile says:

2013-01-28 18:17:16,377 http-8095-6 INFO \[plugin.rest.filter.BasicApplicationAuthenticationFilter\] Application 'confluence' failed authentication

I also tried to set the passwords in all crowd.properties to the same value and overwrote the password in the database. now it is a slightly different log entry:

2013-01-29 14:24:09,352 http-8095-1 INFO \[plugin.rest.filter.BasicApplicationAuthenticationFilter\] Application 'confluence' failed authentication


Tags: crowd

login