phacility/phabricator · error · Exception
LDAP Exception: %s LDAP Error #%d: %s
Error message
LDAP Exception: %s LDAP Error #%d: %s
What it means
Error "LDAP Exception: %s LDAP Error #%d: %s" thrown in phacility/phabricator.
Source
Thrown at src/applications/auth/adapter/PhutilLDAPAuthAdapter.php:455
// This is `LDAP_INVALID_CREDENTIALS`.
if ($errno == 49) {
throw new PhutilAuthCredentialException();
}
if ($errno || $error) {
$full_message = pht(
"LDAP Exception: %s\nLDAP Error #%d: %s",
$message,
$errno,
$error);
} else {
$full_message = pht(
'LDAP Exception: %s',
$message);
}
throw new Exception($full_message);
}
private function bindLDAP($conn, $user, PhutilOpaqueEnvelope $pass) {
$profiler = PhutilServiceProfiler::getInstance();
$call_id = $profiler->beginServiceCall(
array(
'type' => 'ldap',
'call' => 'bind',
'user' => $user,
));
// NOTE: ldap_bind() dumps cleartext passwords into logs by default. Keep
// it quiet.
if (strlen($user)) {
$ok = @ldap_bind($conn, $user, $pass->openEnvelope());
} else {
$ok = @ldap_bind($conn);
}View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/auth/adapter/PhutilLDAPAuthAdapter.php:455 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/2f07c18c854a7d8c.
Report an issue: GitHub.