Module basic

Source
Expand description

Contains al the basic LDAP types

Structs§

ChumskyError
a wrapped error in case parsing fails to get proper error output the chumsky errors themselves lack Display and std::error::Error implementations
DistinguishedName
a distinguished name is a unique identifier for an entry within the LDAP tree, it is comprised of a comma-separated ordered list of RelativeDistinguishedName components
KeyString
a key string is a string limited to the characters that are safe to use in a key context, e.g. a relative distinguished name, without encoding
LDAPEntry
represents an object in the LDAP tree we would use ldap3::SearchEntry but then we would not be able to derive Diff easily
LDAPEntryDiff
OIDWithLength
in some locations LDAP allows OIDs with an optional length specifier to describe attribute types with a length limit
RelativeDistinguishedName
a relative distinguished name is one of the components of a distinguished name usually a single pair of a keystring or an OID along with its attribute value but it can also be a plus sign separated string of several such pairs
RootDSE
represents the object to request from an LDAP server to figure out which features,… it supports

Enums§

KeyStringOrOID
LDAP allows the use of either a keystring or an OID in many locations, e.g. in DNs or in the schema
LDAPOperation
an operation to perform to turn one LDAP object into another. we purposefully only include operations here that operate without moving the object to a different DN

Functions§

deserialize_rdn
parses an RDN with attribute values being represented either as a string or an array of integers
dn_parser
parses a DistinguishedName
hash_oid
hash function for ObjectIdentifier based on string representation since ObjectIdentifier does not implement Hash
hex_byte_parser
parses a series of hex-encoded bytes (always even number of hex digits)
keystring_or_oid_parser
parses either a KeyString or an ObjectIdentifier
keystring_parser
parses a KeyString
oid_parser
chumsky parser for oid::ObjectIdentifier
quoted_keystring_parser
parses a KeyString in locations where it is single-quoted
rdn_attribute_binary_value_parser
parses a hex-encoded binary attribute value in an RDN
rdn_attribute_string_value_parser
parses a plain string attribute value in an RDN
rdn_attribute_value_parser
parses either a binary or a plain attribute value in an RDN
rdn_parser
parses a RelativeDistinguishedName
serialize_rdn
serialize RDN attribute values as string if possible falling back to array of numbers of necessary