# Troubleshooting LDAP Sign-In

Use this when someone can't sign in to an LDAP-connected application, or the application can't connect to ID Everywhere.

## The application can't connect

<table id="bkmrk-symptom-check-timeou"><thead><tr><th>Symptom</th><th>Check</th></tr></thead><tbody><tr><td>Timeout or "can't contact LDAP server"</td><td>Server name and port **636** exactly as shown in the portal. Allow outbound TCP 636 from the application's network.</td></tr><tr><td>TLS, SSL or certificate errors</td><td>Choose **LDAPS / SSL/TLS**, not StartTLS or plain LDAP. Make sure the application's system has up-to-date trusted certificates and the correct date and time.</td></tr><tr><td>"Invalid credentials" when testing the connection</td><td>The service account Bind DN or password is wrong, or the password was regenerated. Copy both again from **Settings › LDAP Directory Service**.</td></tr><tr><td>Connected, but no users found</td><td>Check the Base DN is the **User Search Base** from the portal, and the filter uses `uid`.</td></tr><tr><td>Nothing works at all</td><td>Check LDAP is still enabled in Settings. The status should not be Disabled by Tenant or LDAP Access Disabled.</td></tr></tbody></table>

## One person can't sign in

<table id="bkmrk-cause-fix-wrong-user"><thead><tr><th>Cause</th><th>Fix</th></tr></thead><tbody><tr><td>Wrong username</td><td>Use their ID Everywhere username or primary email, not an alias. See [Which Username Should I Use for LDAP?](https://help.ideverywhere.com/books/ldap-integration/page/which-username-should-i-use-for-ldap)</td></tr><tr><td>Wrong or old password</td><td>Their ID Everywhere password, which is case-sensitive. If they changed it recently, update it in every app and device that saves it.</td></tr><tr><td>Too many failed attempts</td><td>After 5 failures, LDAP sign-in for that username pauses for 15 minutes. Wait, then fix any device still sending an old password.</td></tr><tr><td>Disabled or not yet activated</td><td>Only active users can sign in. Check their status under **Users**.</td></tr><tr><td>Not in the directory</td><td>Users need an ID Everywhere username to appear in the directory. Check their user page.</td></tr></tbody></table>

## Everyone suddenly fails

- The service account password was regenerated and the app still uses the old one.
- LDAP was turned off in Settings, or by your plan.
- Too many failures across your organization in a short time can pause LDAP briefly as a protection. This usually means an application is misconfigured and retrying constantly.

## Testing from a computer

With OpenLDAP tools installed, this checks a person's username and password. Replace the values with the ones from your portal, and enter the password when asked:

```
ldapwhoami -H ldaps://YOUR-LDAP-SERVER:636 -D "uid=jsmith,YOUR-USER-SEARCH-BASE" -W
```

A successful result prints the user's DN. "Invalid credentials" means the username or password is wrong, or the user is locked out or disabled.

Still stuck? [Contact support](https://help.ideverywhere.com/books/troubleshooting/page/when-and-how-to-contact-support) with the application's name, its LDAP settings (but not passwords), and the time of a failed attempt.