Skip to main content

Module classify

Enumsยง

Phase ๐Ÿ”’
Where in a rotation an LDAP failure happened, which decides what it says about the target.

Constantsยง

RC_ADMIN_LIMIT_EXCEEDED ๐Ÿ”’
adminLimitExceeded: the operation exceeded a limit the serverโ€™s administrator set.
RC_BUSY ๐Ÿ”’
busy: the server is too busy to handle the operation now.
RC_INVALID_CREDENTIALS ๐Ÿ”’
invalidCredentials: the bindโ€™s name or password is wrong. Active Directory also answers it for a locked-out or disabled account.
RC_UNAVAILABLE ๐Ÿ”’
unavailable: the server is shutting down, or a part it needs is offline.

Functionsยง

classify_ldap_error ๐Ÿ”’
Transport failures are transient; directory decisions and TLS or configuration failures are permanent. Only a result code or a fixed kind reaches the detail, never the directoryโ€™s text, which can echo account names.
classify_result_code ๐Ÿ”’
Load shedding is transient; any other rejection is a decision the directory will repeat.
io_error_kind_name ๐Ÿ”’
is_tls_error ๐Ÿ”’
tokio-rustls reports a rejected certificate as io::Error(InvalidData, rustls::Error), which ldap3 forwards as Io. It must not be retried like a network fault: it needs an operator.
target_rejected ๐Ÿ”’
target_unreachable ๐Ÿ”’