Skip to Content
ReferenceError Codes

Error Codes

Complete reference of AD Unlock error codes.

Connection Errors

CodeMessageCauseSolution
CONN_001Gateway unreachableNetwork issueCheck firewall, allow outbound 443
CONN_002SSL handshake failedSSL inspectionAdd bypass for api.adunlock.me
CONN_003Certificate invalidExpired/wrong certRenew certificates
CONN_004Authentication failedWrong tenant/connector IDVerify IDs in config
CONN_005Connection timeoutNetwork latencyCheck network path

LDAP Errors

CodeMessageCauseSolution
LDAP_001Bind failedWrong credentialsVerify service account
LDAP_002Server unreachableDC not reachableCheck network/firewall
LDAP_003TLS handshake failedLDAPS not enabledEnable LDAPS on DC
LDAP_004Permission deniedMissing delegationRe-run permissions script
LDAP_005Object not foundWrong DNVerify base_dn and OUs
LDAP_006Constraint violationPassword policyCheck AD password policy
LDAP_007Unwilling to performSecure connection requiredUse LDAPS (port 636)

Request Errors

CodeMessageCauseSolution
REQ_001User not enrolledPhone not registeredEnroll user
REQ_002User not found in ADUser doesn’t existVerify AD user
REQ_003User not in allowed OUOU not configuredAdd OU to allowed_ous
REQ_004User in denied groupMember of blocked groupRemove from group or policy
REQ_005Request blockedRisk too highManual approval required
REQ_006Rate limit exceededToo many requestsWait and retry

Verification Errors

CodeMessageCauseSolution
OTP_001Code expiredOTP older than 5 minRequest new code
OTP_002Code invalidWrong code enteredEnter correct code
OTP_003Too many attempts3+ failed attemptsStart new session
OTP_004Email send failedEmail delivery issueCheck email config

Configuration Errors

CodeMessageCauseSolution
CFG_001Config file not foundMissing config.yamlCreate config file
CFG_002Invalid YAMLSyntax errorValidate YAML
CFG_003Missing required fieldRequired option missingAdd required field
CFG_004Invalid valueWrong value typeCheck documentation
CFG_005Certificate not foundCert file missingDownload bundle

API Errors

CodeHTTPMessageCause
API_001401UnauthorizedInvalid/missing token
API_002403ForbiddenInsufficient permissions
API_003404Not foundResource doesn’t exist
API_004429Rate limitedToo many requests
API_005500Internal errorServer issue

Troubleshooting Steps

For Connection Errors

  1. Check network connectivity
  2. Verify firewall rules
  3. Test with diagnostic script
  4. Check connector logs

For LDAP Errors

  1. Test LDAPS with PowerShell
  2. Verify service account
  3. Check delegated permissions
  4. Review DC configuration

For Request Errors

  1. Verify user enrollment
  2. Check policy configuration
  3. Review risk factors
  4. Check audit logs
Last updated on