ldap3.protocol.rfc4512 module

class ldap3.protocol.rfc4512.AttributeTypeInfo(oid=None, name=None, description=None, obsolete=False, superior=None, equality=None, ordering=None, substring=None, syntax=None, min_length=None, single_value=False, collective=False, no_user_modification=False, usage=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.2)

class ldap3.protocol.rfc4512.BaseObjectInfo(oid=None, name=None, description=None, obsolete=False, extensions=None, experimental=None, definition=None)

Bases: object

Base class for objects defined in the schema as per RFC4512

classmethod from_definition(definitions)
oid_info
class ldap3.protocol.rfc4512.BaseServerInfo(raw_attributes)

Bases: object

classmethod from_file(target, schema=None, custom_formatter=None)
classmethod from_json(json_definition, schema=None, custom_formatter=None)
to_file(target, indent=4, sort=True)
to_json(indent=4, sort=True)
class ldap3.protocol.rfc4512.DitContentRuleInfo(oid=None, name=None, description=None, obsolete=False, auxiliary_classes=None, must_contain=None, may_contain=None, not_contains=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.6)

class ldap3.protocol.rfc4512.DitStructureRuleInfo(oid=None, name=None, description=None, obsolete=False, name_form=None, superior=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.7.1)

class ldap3.protocol.rfc4512.DsaInfo(attributes, raw_attributes)

Bases: ldap3.protocol.rfc4512.BaseServerInfo

This class contains info about the ldap server (DSA) read from DSE as defined in RFC4512 and RFC3045. Unknown attributes are stored in the “other” dict

class ldap3.protocol.rfc4512.LdapSyntaxInfo(oid=None, description=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.5)

class ldap3.protocol.rfc4512.MatchingRuleInfo(oid=None, name=None, description=None, obsolete=False, syntax=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.3)

class ldap3.protocol.rfc4512.MatchingRuleUseInfo(oid=None, name=None, description=None, obsolete=False, apply_to=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.4)

class ldap3.protocol.rfc4512.NameFormInfo(oid=None, name=None, description=None, obsolete=False, object_class=None, must_contain=None, may_contain=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.7.2)

class ldap3.protocol.rfc4512.ObjectClassInfo(oid=None, name=None, description=None, obsolete=False, superior=None, kind=None, must_contain=None, may_contain=None, extensions=None, experimental=None, definition=None)

Bases: ldap3.protocol.rfc4512.BaseObjectInfo

As per RFC 4512 (4.1.1)

class ldap3.protocol.rfc4512.SchemaInfo(schema_entry, attributes, raw_attributes)

Bases: ldap3.protocol.rfc4512.BaseServerInfo

This class contains info about the ldap server schema read from an entry (default entry is DSE) as defined in RFC4512. Unknown attributes are stored in the “other” dict

is_valid()
ldap3.protocol.rfc4512.attribute_usage_to_constant(value)
ldap3.protocol.rfc4512.constant_to_attribute_usage(value)
ldap3.protocol.rfc4512.constant_to_class_kind(value)
ldap3.protocol.rfc4512.extension_to_tuple(extension_string)
ldap3.protocol.rfc4512.list_to_string(list_object)
ldap3.protocol.rfc4512.oids_string_to_list(oid_string)
ldap3.protocol.rfc4512.quoted_string_to_list(quoted_string)