ldap3.abstract.attribute module

class ldap3.abstract.attribute.Attribute(attr_def, entry, cursor)

Bases: object

Attribute/values object, it includes the search result (after post_query transformation) of each attribute in an entry

Attribute object is read only

  • values: contain the processed attribute values
  • raw_values’: contain the unprocessed attribute values
value
Returns:The single value or a list of values of the attribute.
class ldap3.abstract.attribute.OperationalAttribute(attr_def, entry, cursor)

Bases: ldap3.abstract.attribute.Attribute

Operational attribute/values object. Include the search result of an operational attribute in an entry

OperationalAttribute object is read only

  • values: contains the processed attribute values
  • raw_values: contains the unprocessed attribute values

It may not have an AttrDef

class ldap3.abstract.attribute.WritableAttribute(attr_def, entry, cursor)

Bases: ldap3.abstract.attribute.Attribute

add(values)
changes
delete(values)
discard()
remove()
set(values)
virtual