Directory 'Remote JIRA Directory' is not functional during authentication
Asked by Tim Stoel:

All of our users, including admins, are unable to log into Confluence, they are getting an error on the login page saying:

* Sorry, an error occurred trying to log you in. Please try again.

This install has been up and working for a few months. Users are managed by JIRA. Everything was working last night. The server has not been rebooted. No IP addresses or port numbers have changed. The hardware is a 40 core Xeon server with SSD RAID and 128GB of RAM. CPU load rarely goes over 10% so I don't think it is a hardware resource issue. All users are able to login to JIRA without problems. All of the SSL certificates are good. The log for confluence is showing this error:

authenticateUser Directory 'Remote JIRA Directory' is not functional during authentication of 'username_here'

I tested the crowd authentication, I get a login prompt from my browser but I am unable to login to:

**jiraserverurl.mycompany.com/rest/usermanagement/1/search?entity-type=user\&start-index=0\&max-results=1\&expand=user**

Any tips on how to troubleshoot this? All of the solutions I am finding there is at least admin access to the Confluence web UI.


Answers:
author: Tim Stoel
body: This may help... Under User Directories in Confluence I see:

**Synchronization failed. See server logs for details.**

I got this error when testing the JIRA user director sync from Confluence

**Test basic connection : Failed com.atlassian.crowd.exception.ApplicationPermissionException: Forbidden (403) Encountered a "403 - Forbidden" error while loading this page. client.forbidden.exception Go to Jira home**

comments: author: Ditta Khan
body: I am also encountering the same issue.  

My JIRA and Confluence run on the same physical server.

I did recently move the server to another location. The IP addresses were updated.

The 403 error indicate there is comms.

Any help greatly appreciated


author: Ditta Khan
body: Hey, I found the solution here:

<https://confluence.atlassian.com/stashkb/unable-to-connect-to-jira-for-authentication-forbidden-403-323391874.html>

The problem came about because the IP address of my server had changed.


author: Tim Stoel
body: Thank you Kurt. After a server reboot I am able to log into my administrator account on Confluence but none of the other users are.

I tailed the JIRA log file and found that no events happen in the JIRA log during the Confluence login process. This is the error in the Confluence log:

**authenticateUser Directory 'Remote JIRA Directory' is not functional during authentication of 'username_here'**

I am still unable to login to:

**jiraserverurl.mycompany.com/rest/usermanagement/1/search?entity-type=user\&start-index=0\&max-results=1\&expand=user**

I tried the following and I get a 404

**confluenceserverurl.mycompany.com/rest/usermanagement/1/search?entity-type=user\&start-index=0\&max-results=1\&expand=user**


author: Kurt Klinner
body: [@Tim Stoel](/t5/user/viewprofilepage/user-id/3951131)

Hi Tim

welcome to the Atlassian community

Can you rerun your test from the confluence server. Looking at the atlassian-confluence.log might provide additional information

<https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html>

should guide you in getting access by using the recovery_admin user

Hope that helps

Cheers

Kurt