Skip to content
pubscout

dartdap

0.11.4, released 7 months ago by an unverified publisher

LDAP v3 client for Dart, supports search, add, modify, delete, and connection pooling

$ flutter pub add dartdap
Source repository

What it does

Provides a Dart API to connect to LDAP v3 servers, perform CRUD operations, and stream search results. Includes experimental connection pool and logging.

AI-written summary of version 0.11.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need to query or modify an LDAP directory from a Dart app
  • Working with directory services in a server or CLI tool
  • Implementing authentication backends that rely on LDAP

Skip it when

  • You only need simple HTTP or REST APIs
  • Your project targets only web browsers (LDAP requires sockets)

Strengths

  • Full LDAP v3 support with search, modify, and referrals
  • Stream-based search results for efficient handling
  • Experimental connection pool for reuse and retry
  • Good logging integration via Dart logging

Weaknesses

  • Experimental pool may lack advanced features
  • No built‑in UI components, purely backend
  • Requires native socket support (not available on web)

Setup

Kind
Pure Dart
Effort
Medium
Code generation
No
Direct dependencies
4

Add dependency, import package, create LdapConnection with host/port, optionally enable SSL. No build_runner needed.

import 'package:dartdap/dartdap.dart';

void main() async {
  var ldap = LdapConnection(hostname: 'ldap.example.com');
  await ldap.connect();
  var results = await ldap.search('dc=example,dc=com', Filter.eq('objectClass', 'person'));
  await for (var entry in results.entries) {
    print(entry.dn);
  }
  await ldap.close();
}

Alternatives

Packages that do the same job and could replace dartdap.

Works with

Packages commonly used together with dartdap: ones it builds on, ones built on it, and its own family.