add method

  1. @override
Future<LdapResult> add(
  1. String dn,
  2. Map<String, dynamic> attrs
)
override

Performs an LDAP add operation.

dn is the LDAP Distinguised Name. attrs is a map of attributes keyed by the attribute name. The attribute values can be simple Strings, lists of strings, or alternatively can be of type Attribute

Some possible exceptions

LdapResultEntryAlreadyExistsException thrown when the entry to add already exists.

Implementation

@override
Future<LdapResult> add(String dn, Map<String, dynamic> attrs) async {
  loggerConnection.fine('add: $dn');
  return await _cmgr
      .process(AddRequest(dn, Attribute.newAttributeMap(attrs)));
}