pub enum LdapError {
Show 21 variants
EmptyUnixPath,
PortInUnixPath,
Io {
source: Error,
},
OpSend {
source: SendError<(RequestId, LdapOp, Tag, Option<Vec<RawControl>>, Sender<(Tag, Vec<Control>)>)>,
},
ResultRecv {
source: RecvError,
},
IdScrubSend {
source: SendError<RequestId>,
},
MiscSend {
source: SendError<MiscSender>,
},
Timeout {
elapsed: Elapsed,
},
FilterParsing,
EndOfStream,
UrlParsing {
source: ParseError,
},
UnknownScheme(String),
NativeTLS {
source: Error,
},
LdapResult {
result: LdapResult,
},
AddNoValues,
AdapterInit(String),
DecodingUTF8,
InvalidScopeString(String),
UnrecognizedCriticalExtension(String),
GssapiOperationError(String),
NoGssapiToken,
}
Expand description
Error variants recognized by the library.
Variants§
EmptyUnixPath
No path given for a ldapi://
URL.
PortInUnixPath
A ldapi://
URL contains a port spec, which it shouldn’t.
Io
Encapsulated I/O error.
OpSend
Fields
Error while sending an operation to the connection handler.
ResultRecv
Error while receiving operation results from the connection handler.
IdScrubSend
Error while sending an internal ID scrubbing request to the connection handler.
MiscSend
Error while sending a misc result.
Timeout
Operation or connection timeout.
FilterParsing
Error parsing the string representation of a search filter.
EndOfStream
Premature end of a search stream.
UrlParsing
Fields
source: ParseError
URL parsing error.
UnknownScheme(String)
Unknown LDAP URL scheme.
NativeTLS
Native TLS library error.
LdapResult
Fields
result: LdapResult
LDAP operation result with an error return code.
AddNoValues
No values provided for the Add operation.
AdapterInit(String)
No values provided for the Add operation.
DecodingUTF8
Error converting an octet- or percent-decoded string to UTF-8.
InvalidScopeString(String)
Invalid scope string in LDAP URL.
UnrecognizedCriticalExtension(String)
Unreconized LDAP URL extension marked as critical.
GssapiOperationError(String)
GSSAPI operation error.
NoGssapiToken
No token received from GSSAPI acceptor.