Troubleshooting
This guide helps users understand and resolve common LDAP (Lightweight Directory Access Protocol) connection or authentication errors encountered when integrating with Active Directory (AD) or other directory services. Each section provides a simplified, Message error message, its meaning, possible causes, and clear remediation steps.
1) Authentication expired / must change password
Message: “Your password or account has expired.”
Technical details (examples):
AcceptSecurityContext error, data 532
ACCOUNT_EXPIRED
/PASSWORD_EXPIRED
Code(s): 532
, 701
, 773
Meaning: AD requires a password reset or the account has passed its expiry.
What You Can Do:
- Reset your password through your organisation’s password portal.
- Contact your IT administrator to renew your account.
- Check if your account needs reactivation.
2) Account locked
Message: “Your account has been locked.”
Technical details (examples):
data 775
- “locked out”,
ACCOUNT_LOCKED
Code(s): 775
Meaning: Too many failed attempts or a policy lock.
What You Can Do:
- Wait for the automatic unlock period (usually 15–30 minutes).
- Contact your IT administrator to unlock your account immediately.
- Ensure you are using the correct password to avoid further lockouts.
3) Invalid credentials / Bind DN issues
Message: “Invalid Admin DN/Bind DN or password. Please verify your LDAP credentials and try again.”
Technical details (examples):
LdapErr: ... data 52e ...
- LDAP result code
49
- “user not found” patterns (e.g.,
525
)
Code(s): 52e
, 525
, 49
Meaning: The Bind DN (username) or password is wrong, or the account is unusable.
What You Can Do:
- Confirm the correct username and password by logging into AD.
- Try alternate username formats (e.g.,
[email protected]
orDOMAIN\user
). - Check if the account is active, not locked, and has a non-expired password.
- Verify the bind DN format matches your directory structure.
4) Referral (cross-domain)
Message: “The directory server redirected your request. Please check the Base DN or domain configuration.”
Technical details (examples):
0000202B: RefErr ...
data 0, 1 access points ...
- Contains “referral”
Code(s): 202B
, 10
Meaning: The query targets data in another domain / partition.
What You Can Do:
- Update your Base DN to the correct domain (e.g.,
DC=company,DC=com
). - Use Global Catalog ports 3268 (LDAP) or 3269 (LDAPS) for cross-domain queries.
- Verify DNS and trust configurations between domains.
- Ensure your bind DN has access to the target domain.
5) Stronger authentication required
Message: “The server requires stronger authentication. TLS/SSL is required for this operation.”
Technical details (examples):
StrongerAuthRequired
STRONG_AUTH_REQUIRED
Code(s): 8
Meaning: The server enforces signing, sealing, channel binding, or LDAPS.
What You Can Do:
- Use LDAPS (636) instead of plain LDAP (389).
- Enable channel binding if required by your server.
- Verify that TLS/SSL certificates are properly configured.
- Check if the server requires signed or sealed connections.
6) Certificate validation failed
Message: “SSL/TLS certificate validation failed. The server certificate is not trusted.”
Technical details (examples):
- “self signed certificate”
- “unable to verify”
- Mentions of
CERT_
or “certificate”
Code(s): (none)
Meaning: The server certificate is invalid, expired, mismatched, or untrusted.
What You Can Do:
- Upload the correct SSL certificate for your LDAP server.
- Verify the certificate is valid and not expired.
- Ensure the certificate hostname matches your server URL.
- Check if you need to add intermediate CA certificates.
7) Server unavailable / DC unreachable
Message: “The directory server is currently unavailable or unreachable.”
Technical details (examples):
SERVER_DOWN
UNAVAILABLE
Code(s): 81
Meaning: The client can’t reach the DC or the service isn’t responding.
What You Can Do:
- Verify the server is running and accessible on the network.
- Check if firewall rules are blocking LDAP ports (389, 636, 3268, 3269).
- Confirm the server hostname or IP address is correct.
- Try again later in case of transient server issues.
8) DNS hostname not found
Message: “Unable to connect to the directory server. The hostname could not be found.”
Technical details (examples):
getaddrinfo ENOTFOUND <host>
- Error
.code === 'ENOTFOUND'
Code(s): ENOTFOUND
Meaning: DNS cannot resolve the LDAP hostname.
What You Can Do:
- Verify the LDAP hostname is correct and properly spelled.
- Use a Fully Qualified Domain Name (FQDN) instead of a short name.
- Ensure your system can resolve the domain name (check DNS settings).
- Try using the server IP address temporarily to test connectivity.
9) Connection reset (TLS/port mismatch)
Message: “Connection to the directory server was unexpectedly closed. Please check your encryption settings.”
Technical details (examples):
read ECONNRESET
- Error
.code === 'ECONNRESET'
Code(s): ECONNRESET
Meaning: The server closed the socket, often due to protocol/port mismatch or TLS issues.
What You Can Do:
- Use the correct port: 389 for LDAP, 636 for LDAPS.
- Verify the server’s SSL certificate is valid and trusted.
- Ensure your system supports TLS 1.2 or later.
- Check if LDAP signing or channel binding is correctly configured.
- Verify you are not mixing LDAP/LDAPS protocols and ports.
10) Invalid or non-existent DN / Base DN
Message: “The specified Base DN does not exist or has invalid syntax.”
Technical details (examples):
NO_SUCH_OBJECT
INVALID_DN_SYNTAX
- Related protocol errors
Code(s): 32
, 34
Meaning: The Base DN is wrong or malformed, or the target object doesn’t exist.
What You Can Do:
- Verify the Base DN matches your directory structure (e.g.,
DC=company,DC=com
). - Check for typos in the DN components.
- Ensure the DN format follows LDAP standards (comma-separated, no spaces around commas).
- Confirm the organisational unit or domain exists in your directory.
11) Query limits exceeded (time/size/admin)
Message (varies by limit):
- Time limit: “The search operation took too long and timed out.”
- Size limit: “The search returned too many results and hit the size limit.”
- Admin limit: “An administrative limit was exceeded on the server.”
Technical details (examples):
- Time limit exceeded / size limit exceeded / admin limit exceeded
Code(s): 3
(time), 4
(size), 11
(admin)
What You Can Do (for all):
- Refine your search filter to return fewer results.
- Use pagination for large result sets.
Additionally:
- Time limit (
3
): Increase the time limit in your configuration. - Size limit (
4
): Increase the size limit in your configuration. - Admin limit (
11
): Contact your LDAP administrator to adjust server limits.
12) Insufficient access / unwilling to perform
Message (varies):
- “Insufficient access rights to perform this operation.”
- or “The server is unwilling to perform the requested operation.”
Technical details (examples):
- Insufficient access errors
- Unwilling to perform responses
Code(s): 50
(insufficient access), 53
(unwilling to perform)
Meaning: Permissions/policies block the operation.
What You Can Do:
- Verify your bind credentials have the necessary permissions.
- Check if the account has read/write access to the target DN.
- Ensure the operation is allowed by server policies.
- Contact your LDAP administrator to grant appropriate permissions.
13) Unknown / generic failure
Message: Connection failed: <technical error message>
Meaning: The error didn’t match a known category.
What You Can Do:
- Verify all connection parameters are correct.
- Check the technical error details below.
- Review LDAP server logs for more information.
- Contact your AD administrator if the issue persists.
Summary Table
User Message | Code(s) Recognized | Description | Common Fix |
---|---|---|---|
Invalid Admin DN/Bind DN or password | 52e, 525, 49 | Auth failure | Verify creds, format, account status |
Your password or account has expired | 532, 701, 773 | Password/account expired / must change | Reset password or renew account |
Your account has been locked | 775 | Account locked | Wait unlock window / ask admin |
The server redirected your request | 202B, 10 | LDAP referral | Correct Base DN / use GC ports |
Stronger authentication required | 8 | Signing/channel binding/LDAPS needed | Use LDAPS, enable channel binding, verify TLS |
SSL/TLS certificate validation failed | — | Cert trust/hostname/expiry issues | Upload CA/chain, fix hostname/expiry |
The directory server is unavailable | 81 | DC down / network issue | Check ports, host/IP, firewall |
Hostname could not be found | ENOTFOUND | DNS resolution failed | Fix hostname / DNS / try IP |
Connection unexpectedly closed | ECONNRESET | TLS/port mismatch | Use correct port, verify TLS/signing |
Base DN invalid or not found | 32, 34 | DN syntax/object missing | Fix DN format/values |
Query limit exceeded (time/size/admin) | 3, 4, 11 | Server/client limits hit | Refine filter, paginate, increase limits |
Insufficient access / unwilling to perform | 50, 53 | Permissions/policy block | Grant rights / adjust policy |
Unknown error | — | Fallback | Check params, review logs, contact admin |
Best Practices for Stable LDAP Connectivity
- Verify hostname, port, and encryption settings (LDAP 389 vs LDAPS 636; Global Catalog 3268/3269).
- Prefer LDAPS (636) and correct TLS certificates (validity, hostname, intermediates).
- Ensure the Bind DN format matches your directory structure and that the account is active (not expired/locked).
Getting Support:
When contacting Zluri support, always include:
- Logs: Go to:
C:\Users\Administrator\AppData\Roaming\zluri-ldap-connecter\logs
and share the log file. - Error Information: Complete error response and HTTP status code
- Timeline: When the error occurred.
- Agent Name
Limitations
- Retry Action not available: If an LDAP action fails due to a callback issue, the “Retry” button isn’t supported at the moment.
- One LDAP action per workflow: Each workflow can currently include only one LDAP-related action. This is because LDAP sync operations run asynchronously — Zluri must first complete validation and sync user data before performing another LDAP step. Adding multiple LDAP actions in a single workflow could cause data conflicts or timing issues.
Updated about 4 hours ago