LDIF.Entry (LDIF v0.1.1)
View SourceLIDF.Entry provides a struct and various helper functions for working with normal LDIF/LDAP entries.
Summary
Functions
Adds a value to an attribute and returns a new Entry.
Returns the values of the named attribute.
Returns all attributes as a map.
Deletes an attribute and all its values, returning a new entry
Deletes the specified value from an attribute, returning a new entry
Returns the DN (Distinguished Name) of the entry
Returns the values of the named attribute.
Merge together all tagged attributes, returning a new Entry.
Replaces the entire DN of the entry, returning a new Entry
Replaces the RDN of the entry, returning a new entry.
Returns a normalized version of the DN (Distinguished Name) of the entry
Returns a normalized version of the RDN (Relative Distinguished Name) of the entry
Returns the RDN (Relative Distinguished Name) of the entry
Replaces all the values of the specified attribute with the provided values, returning a new Entry.
Replaces the old value the specified attribute with the new value, returning a new Entry.
Returns the superior part of the entry's DN (this is the opposite of the RDN, the tail)
Converts the entry into a simple map with atom keys.
Types
Functions
Adds a value to an attribute and returns a new Entry.
If an attribute is missing it will be created.
Returns the values of the named attribute.
Attribute names are strings. Values will usually be lists of strings. Empty or missing attributes will result in empty lists being returned.
Returns all attributes as a map.
Attribute names (the keys) will be strings.
Deletes an attribute and all its values, returning a new entry
Deletes the specified value from an attribute, returning a new entry
Returns the DN (Distinguished Name) of the entry
Returns the values of the named attribute.
Attribute names are strings. Values will usually be lists of strings. Missing attributes will result in a nil being returned.
Merge together all tagged attributes, returning a new Entry.
Replaces the entire DN of the entry, returning a new Entry
Replaces the RDN of the entry, returning a new entry.
Returns a normalized version of the DN (Distinguished Name) of the entry
Returns a normalized version of the RDN (Relative Distinguished Name) of the entry
Returns the RDN (Relative Distinguished Name) of the entry
Replaces all the values of the specified attribute with the provided values, returning a new Entry.
@spec replace( entry :: t(), attribute :: binary(), old_value :: binary(), new_value :: binary() ) :: t()
Replaces the old value the specified attribute with the new value, returning a new Entry.
Returns the superior part of the entry's DN (this is the opposite of the RDN, the tail)
Converts the entry into a simple map with atom keys.
You may provide your own custom mapping for keys using the :attr_map option.